ONLINE HELP
 WINDEVWEBDEV AND WINDEV MOBILE

Help / WLanguage / WLanguage properties / HFSQL properties
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 sets the username used to connect to a specific table via OLE DB. You can:
  • Get the username used to connect 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 programmatically.
  • Set the username used to connect to a table via OLE DB (only for data files defined programmatically). 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 set:
  • when defining the data file in the data model editor,
  • when defining the data file programmatically.
Example
// Define the name of the user
Customer.CtUserName = "Julia"
...
// Validate the data file description
HDescribeFile(Customer)
Syntax

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

<User> = <Data file>.CtUserName
<User>: Character string
OLE DB source user name defined when establishing the connection with HConnect.
<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 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 is defined with the File Description type.
<New username>: Character string
OLE DB source user name defined when establishing the connection with HConnect.
Remarks
The CtDescribedUserName property gets and sets the name of the user specified for the OLE DB connection when defining the data file.
Minimum version required
  • Version 9
This page is also available for…
Comments
Click [Add] to post a comment

Last update: 03/14/2024

Send a report | Local help