PC SOFT

ONLINE HELP
FOR WINDEV, WEBDEV AND WINDEV MOBILE

Home | Sign in | English US

  • Operating mode
  • Customizing the display of messages
WINDEV
WindowsLinuxUniversal Windows 10 AppJavaReports and QueriesUser code (UMC)
WEBDEV
WindowsLinuxPHPWEBDEV - Browser code
WINDEV Mobile
AndroidAndroid Widget iPhone/iPadApple WatchUniversal Windows 10 AppWindows Mobile
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 the computers listed in the HClient structure.
Versions 18 and later
Universal Windows 10 App This function is now available in Windows Store apps mode.
New in version 18
Universal Windows 10 App This function is now available in Windows Store apps mode.
Universal Windows 10 App This function is now available in Windows Store apps mode.
Versions 21 and later
Universal Windows 10 App This function is now available in Universal Windows 10 App mode.
New in version 21
Universal Windows 10 App This function is now available in Universal Windows 10 App mode.
Universal Windows 10 App This function is now available in Universal Windows 10 App mode.
Note: From version 19, HFSQL is the new name of HyperFileSQL.
Versions 22 and later
iPhone/iPad This function is now available for the iPhone/iPad applications.
Android Widget This function is now available in Android Widget mode.
Android This function is now available for the Android applications.
Java This function is now available for the Java applications.
New in version 22
iPhone/iPad This function is now available for the iPhone/iPad applications.
Android Widget This function is now available in Android Widget mode.
Android This function is now available for the Android applications.
Java This function is now available for the Java applications.
iPhone/iPad This function is now available for the iPhone/iPad applications.
Android Widget This function is now available in Android Widget mode.
Android This function is now available for the Android applications.
Java This function is now available for the Java applications.
Example
// Disconnect all users from the "MAILBOX" database
HClient.Database = "MAILBOX"
HDisconnectClient("MyConnection", "Caution: You will be disconnected soon", 300)
Syntax
<Result> = HDisconnectClient(<Connection Name> , <Disconnection Message> , <Display Duration>)
<Result>: Boolean
  • True if the operation was performed,
  • False if a problem occurred.
HDisconnectClient is a locking function: the rest of program will be run when the different clients are disconnected.
<Connection Name>: Character string (with or without quotes)
Name of connection to use. This connection was defined in the data model editor, or by HDescribeConnection or HOpenConnection.
<Disconnection Message>: Character string (with quotes)
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,
  • Versions 23 and later
    the direct indication of duration (1 s for example).
    New in version 23
    the direct indication of duration (1 s for example).
    the direct indication of duration (1 s for example).
Remarks

Operating mode

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

Customizing the display of messages

HOnServerCall is used to customize the management of message display on the client computer.
Components
WINDEVWEBDEV - Server codeReports and Queries wd230hf.dll
Windows Mobile wp230hf.dll
Java wd230java.jar
Linux wd230hf.so
Android wd230android.jar
Minimum required version
  • 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
Jul. 18 2017