PC SOFT

WINDEVWEBDEV AND WINDEV MOBILE
ONLINE HELP

Home | Sign in | English UK

WINDEV
WindowsLinuxUniversal Windows 10 AppJavaReports and QueriesUser code (UMC)
WEBDEV
WindowsLinuxPHPWEBDEV - Browser code
WINDEV Mobile
AndroidAndroid Widget iPhone/iPadApple WatchUniversal Windows 10 AppWindows Mobile
Others
Stored procedures
CtDatabase (Property)
In french: CxBaseDeDonnées
OLE DBAvailable only with this kind of connection
..CtDatabase is used to manage the OLE DB data source during the OLE DB connection to a specific table. You can:
  • Find out the OLE DB data source used for the connection to a table by 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 by programming.
  • Define the OLE DB data source used for connecting to a table by OLE DB (when the data file is described by programming).
    In this case, this property is equivalent to ..CtDescribedDatabase.
Reminder: HConnect is used to redefine one or more parameters of the OLE DB connection to a table. By default, the characteristics of the OLE DB connection are defined:
  • in the data model editor during the description of the data file,
  • when the data file was described by programming.
Example
// Find out the OLE DB data source
ResOLEDBDatabase = Client..CtDatabase
Syntax

Find out the OLE DB data source Hide the details

<OLE DB data source> = <File name>..CtDatabase
<OLE DB data source>: Character string
Full path of OLE DB data source.
<File name>: Character string (with or without quotes)
Name of data file used. This name was defined in the data model editor or by the File description type.

Defining the OLE DB data source Hide the details

<File name>..CtDatabase = <OLE DB data source>
<File name>: Character string (with or without quotes)
Name of data file used. This name was defined by the File description type.
<OLE DB data source>: Character string
Full path of OLE DB data source.
Remarks
..CtDescribedDatabase is used to find out and modify the data source specified for the OLE DB connection when describing the data file.
See also
Minimum version required
  • Version 9
This page is also available for…
Comments
Click [Add] to post a comment