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
User (Property)
In french: Utilisateur
ODBCHFSQL ClassicNot available with these kinds of connection
The User property is used to manage the user of a connection (HFSQL Client/Server, OLE DB, etc.). You can:
  • Identify the user of a connection (HFSQL Client/Server, OLE DB, etc.).
  • Define the user of a connection (HFSQL Client/Server, OLE DB, ...). In this case, if the connection is currently opened, it will be closed and reopened with the new parameters during the first access to a file that uses this connection.
Remark: The connection can correspond to:
Example
MyConnection is Connection
// Describe the connection
MyConnection.User = "FP"
MyConnection.Password = "Test"
MyConnection.Server = "MYSERVER"
MyConnection.Database = "Database"
MyConnection.Provider = hAccessHFClientServer
MyConnection.Access = hOReadWrite
MyConnection.ExtendedInfo = "Extended information"
MyConnection.CursorOptions = hClientCursor
 
HOpenConnection(MyConnection)
Syntax

Identifying the user of a connection Hide the details

<Username> = <Connection used>.User
<Username>: Character string
Name of the user of the connection.
<Connection used>: Connection name
Name of the connection used. This name is defined:

Defining the user of a connection Hide the details

<Connection used>.User = <New username>
<Connection used>: Connection name
Name of the connection used. This name is defined:
<New username>: Character string
Name of the user of the connection.
Remarks
CtUserName is used to define the user of a connection. This property is kept for backward compatibility. It is recommended to use the User property.
See also
Minimum version required
  • Version 10
This page is also available for…
Comments
Click [Add] to post a comment

Last update: 07/17/2023

Send a report | Local help