PC SOFT

WINDEVWEBDEV AND WINDEV MOBILE
ONLINE HELP

Home | Sign in | English UK

New WINDEV, WEBDEV, WINDEV Mobile 25 feature!
  • Customization
  • Use conditions
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
<Connection variable>.SendMessageToClient (Function)
In french: <Variable Connexion>.EnvoieMessageVersClient
HFSQL Client/ServerAvailable only with this kind of connection
Displays a message on the client computers. The affected Client computers are those listed in the HClient structure.
Remark: From version 19, HFSQL is the new name of HyperFileSQL.
Versions 21 and later
WEBDEV - Server code This function is now available to send a message to the users of a HFSQL cluster.
New in version 21
WEBDEV - Server code This function is now available to send a message to the users of a HFSQL cluster.
WEBDEV - Server code This function is now available to send a message to the users of a HFSQL cluster.
Example
// Describe the connection
MyConnection is Connection
...
// Message to all users of "MAILBOX" database
HClient.Database = "MAILBOX"
MyConnection.SendMessageToClient("Caution: You will be disconnected soon", 300)
// Describe the connection
MyConnection is Connection
...
// Message to the "Admin" user of "MyDatabase" database
HClient.Database = "MyDatabase"
HClient.Login = "Admin"
MyConnection.SendMessageToClient("Test for sending messages", 15)
// Describe the connection
MyConnection is Connection
...
// Message to all applications accessing Client.fic
// found in "MyDatabase"
HClient.Database = "MyDatabase"
HClient.File = "Customer.fic"
MyConnection.SendMessageToClient("You are using the Client file", 300)
// Describe the connection
MyConnection is Connection
...
// Message to all applications run on "Computer1"
//  that use the "Admin" login
HClient.Computer = "Computer1"
HClient.Login = "Admin"
MyConnection.SendMessageToClient("Caution: You will be disconnected soon", 300)
Syntax
<Result> = <Connection>.SendMessageToClient(<Message> , <Display duration>)
<Result>: Boolean
  • True if the operation was performed,
  • False if a problem occurred.
<Connection variable>.SendMessageToClient is a locking function while the message is being sent to the server. The application continues to run once the message is received by the server.
<Connection>: Connection variable
Name of the Connection variable that describes the connection to use.
<Message>: Character string (with quotes)
Message that will be displayed on the client computer.
<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

Customization

HOnServerCall is used to customize the management of message display on the client computer.

Use conditions

  • To use this function, you must have:
  • The message will be sent to the users that the client calling the function is allowed to see.
  • Versions 21 and later
    This function can be used to send a message to all the users of a HFSQL cluster.
    New in version 21
    This function can be used to send a message to all the users of a HFSQL cluster.
    This function can be used to send a message to all the users of a HFSQL cluster.
Component : wd250hf.dll
Minimum version required
  • Version 25
This page is also available for…
Comments
Click [Add] to post a comment