DF_DRIVER_LICENSE_COMPANY_NAME¶
Applies to: ORAFlex SQLFlex MYSQLFlex/MariaDB PGFlex
Added in Flex2SQL 18.1.
Returns the company name recorded in the specified driver’s license.
This is a read-only, driver-level attribute; there is no
Set_Attribute form. The driver must be loaded, but a database
connection is not required.
Syntax
Get_Attribute DF_DRIVER_LICENSE_COMPANY_NAME of {DriverID} to {variable}
Parameter |
Description |
|---|---|
DriverID |
Index of the loaded Flex2SQL driver in the DataFlex driver list. This is not a file number or a database connection ID. |
variable |
String variable that receives the licensed company name. |
Example
This example locates an already loaded Classic SQL Server driver
(SQL_DRV) and retrieves its license company name:
Integer iDriver iDriverCount
String sDriverName sCompanyName
Get_Attribute DF_NUMBER_DRIVERS to iDriverCount
For iDriver from 1 to iDriverCount
Get_Attribute DF_DRIVER_NAME of iDriver to sDriverName
If (Uppercase(sDriverName) = "SQL_DRV") Begin
Get_Attribute DF_DRIVER_LICENSE_COMPANY_NAME of iDriver to sCompanyName
Showln sCompanyName
End
Loop