ONLINE HELP
 WINDEVWEBDEV AND WINDEV MOBILE

This content has been translated automatically.  Click here  to view the French version.
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
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.
Example
// Déconnexion de tous les utilisateurs de la base de données "BAL"
HClient.Database = "BAL"
HDisconnectClient("MaConnexion", "Attention : Déconnexion imminente", 300)
Syntax
<Result> = HDisconnectClient(<Connection> , <Disconnection message> , <Display duration>)
<Result>: Boolean
  • True if the operation was performed,
  • False if a problem occurs.
The function HDisconnectClient function is blocking: the rest of the program will only run once the various clients have been 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 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).
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 10
This page is also available for…
Comments
Desconectar Banco
HClient.Database = "matos"

HDisconnectClient(Matos_hyperfil_server, EDT_OBSERVACAO, 15)

// blog com vide o exemplo


http://windevdesenvolvimento.blogspot.com.br/2017/07/aula-1213-windev-hyperfile-29.html

https://www.youtube.com/watch?v=vb-aWdJsoGI

De matos
18 Jul. 2017

Last update: 06/12/2025

Send a report | Local help