PC SOFT

ONLINE HELP
 WINDEVWEBDEV AND WINDEV MOBILE

Home | Sign in | English EN

WINDEV
WindowsLinuxUniversal Windows 10 AppJavaReports and QueriesUser code (UMC)
WEBDEV
WindowsLinuxPHPWEBDEV - Browser code
WINDEV Mobile
AndroidAndroid Widget iPhone/iPadIOS WidgetApple WatchMac CatalystUniversal Windows 10 App
Others
Stored procedures
CtUserName (Property)
In french: CxUtilisateur
OLE DBAvailable only with this kind of connection
The CtUserName property is used to set the username that will be used when connecting to a specific table via OLE DB. You can:
  • Get the username that will be used for connecting to a table via OLE DB (name used in HConnect). This property can be used for a data file defined in the data model editor or through programming.
  • Define the username that will be used for connecting to a table by OLE DB (when the data file is described through programming). In this case, this property is equivalent to the CtDescribedUserName property.
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 through programming.
Example
// Define the name of the user
Customer.CtUserName = "Julia"
...
// Validate the data file description
HDescribeFile(Customer)
Syntax

Finding out the name of the user (used in HConnect) Hide the details

<User> = <Data file>.CtUserName
<User>: Character string
Name of the user of the OLE DB source defined during the connection by HConnect.
<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.

Defining the name of the user (used in HConnect) Hide the details

<Data file>.CtUserName = <New username>
<Data file>: Character string
Name of the data file used. This name was defined by the File Description type.
<New username>: Character string
Name of the user of the OLE DB source defined during the connection by HConnect.
Remarks
The CtDescribedUserName property is used to get and change the name of the user 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