ONLINE HELP
 WINDEVWEBDEV AND WINDEV MOBILE

This content has been translated automatically.  Click here  to view the French version.
Help / WLanguage / WLanguage properties / HFSQL properties
WINDEV
WindowsLinuxJavaReports and QueriesUser code (UMC)
WEBDEV
WindowsLinuxPHPWEBDEV - Browser code
WINDEV Mobile
AndroidAndroid Widget iPhone/iPadIOS WidgetApple WatchMac Catalyst
Others
Stored procedures
CtDatabase (Property)
In french: CxBaseDeDonnées
OLE DBAvailable only with this kind of connection
The CtDatabase property is used to set the OLE DB data source when connecting to a specific table via OLE DB. You can:
  • Get the OLE DB data source used to connect to a table via OLE DB.
    This source can correspond to:
    • the data source defined in the data model editor,
    • the data source specified in HConnect (if this function was used).
      This property can be used for a data file defined in the data model editor or programmatically.
  • Define the OLE DB data source used to connect to a table via OLE DB (only for data files defined programmatically).
    In this case, this property is equivalent to the CtDescribedDatabase property.
Reminder: The HConnect function can be used to redefine one or more OLE DB connection parameters on a table.. By default, the characteristics of the OLE DB connection are set:
  • when defining the data file in the data model editor,
  • when defining the data file programmatically.
Example
// Find out the OLE DB data source
ResOLEDBDatabase = Client.CtDatabase
Syntax

Getting the OLE DB data source Hide the details

<OLE DB data source> = <Data file>.CtDatabase
<OLE DB data source>: Character string
Full path of the OLE DB data source.
<Data file>: Character string
Name of the data file used. This name is defined in the data model editor or with the File Description type.

Defining the OLE DB data source Hide the details

<Data file>.CtDatabase = <OLE DB data source>
<Data file>: Character string
Name of the data file used. This name is defined with the File Description type.
<OLE DB data source>: Character string
Full path of the OLE DB data source.
Remarks
The CtDescribedDatabase property gets and sets the data source specified for the OLE DB connection when describing the data file.
Minimum version required
  • Version 9
This page is also available for…
Comments
Click [Add] to post a comment

Last update: 12/06/2024

Send a report | Local help