Help / WLanguage / Managing databases / HFSQL / HFSQL Client/Server functions
  • Operating mode
  • Customizing the display of messages
WindowsLinuxUniversal Windows 10 AppJavaReports and QueriesUser code (UMC)
WindowsLinuxPHPWEBDEV - Browser code
AndroidAndroid Widget iPhone/iPadIOS WidgetApple WatchMac CatalystUniversal Windows 10 App
Stored procedures
HDisconnectClient (Function)
In french: HDé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.
// Disconnect all users from the "MAILBOX" database
HClient.Database = "MAILBOX"
HDisconnectClient("MyConnection", "Caution: You will be disconnected soon", 300)
<Result> = HDisconnectClient(<Connection> , <Disconnection message> , <Display duration>)
<Result>: Boolean
  • True if the operation was performed,
  • False if a problem occurs.
HDisconnectClient is a blocking function: the rest of program will be run when the different clients are disconnected.
<Connection>: Character string or Connection variable
Connection to use. This connection corresponds to:
<Disconnection message>: Character string
Message that will be displayed on the client computer before the disconnection.
<Display duration>: Integer ou 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.

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: wd290hf.dll
Minimum version required
  • Version 10
This page is also available for…
Desconectar Banco
HClient.Database = "matos"

HDisconnectClient(Matos_hyperfil_server, EDT_OBSERVACAO, 15)

// blog com vide o exemplo

De matos
18 Jul. 2017

Last update: 05/26/2022

Send a report | Local help