The
Connection property is used to find out and modify the connection currently associated with a data file.
This connection was defined:
This property can be used for a data file defined in the data model editor or through programming.
// Find out the connection currently associated with Customer data file
Info(Customer.Connection)
Syntax
Finding out the connection currently associated with a data file Hide the details
<Current connection> = <Data file>.Connection
<Current connection>: Character string
- Name of the connection currently associated with the specified data file.
- Empty string ("") if no connection is currently associated with the specified data file.
<Data file>: Character string
Name of the data file used. This name was defined in the data model editor or with the File Description type.
Modifying the connection currently associated with a data file Hide the details
<Data file>.Connection = <New connection>
<Data file>: Character string
Name of the data file used. This name was defined in the data model editor or with the File Description type.
<New connection>: Character string or Connection variable
- Name of the connection to associate with the specified data file.
- Empty string ("") if no connection is currently associated with the specified data file.