ONLINE HELP
 WINDEVWEBDEV AND WINDEV MOBILE

Help / WLanguage / Managing databases / HFSQL / HFSQL Client/Server functions
  • Operating mode
  • Customizing the display of messages
WINDEV
WindowsLinuxJavaReports and QueriesUser code (UMC)
WEBDEV
WindowsLinuxPHPWEBDEV - Browser code
WINDEV Mobile
AndroidAndroid Widget iPhone/iPadIOS WidgetApple WatchMac Catalyst
Others
Stored procedures
<Connection variable>.DisconnectClient (Function)
In french: <Variable Connexion>.DéconnecteClient
HFSQL Client/ServerAvailable only with this kind of connection
Displays a message on the Client computers and disconnects the application. The affected Client computers are those specified in the HClient structure.
Example
// Describe the connection
MyConnection is Connection

// Disconnect all users from the "MAILBOX" database
HClient.Database = "MAILBOX"
MyConnection.LogoutClient("Warning: Logout imminent", 300)
Syntax
<Result> = <Connection>.DisconnectClient(<Disconnection message> , <Display duration>)
<Result>: Boolean
  • True if the operation was performed,
  • False if a problem occurs.
The function <Connection variable>.DisconnectClient function is blocking: the rest of the program will only run once the various clients have been disconnected.
<Connection>: Connection variable
Name of the Connection variable that describes the connection to use.
<Disconnection message>: Character string
Message that will be displayed on the client computer before the disconnection.
<Display duration>: Integer or Duration
Display duration of message (in seconds). This parameter can correspond to:
  • an integer corresponding to the number of seconds,
  • a Duration variable,
  • the duration in a readable format (e.g., 1 s).
AndroidAndroid Widget The window cannot be automatically closed once this time has elapsed. The window remains displayed. To complete the disconnection process without displaying the window, the <Display duration> parameter must be set to 0.
Remarks

Operating mode

The client computer specified in the HClient structure displays the message during the specified duration and runs EndProgram when the message box is closed.

Customizing the display of messages

HOnServerCall is used to customize the management of message display on the client computer.
Business / UI classification: Business Logic
Component: wd300hf.dll
Minimum version required
  • Version 25
This page is also available for…
Comments
Click [Add] to post a comment

Last update: 06/18/2025

Send a report | Local help