ONLINE HELP
 WINDEVWEBDEV AND WINDEV MOBILE

Help / WLanguage / WLanguage functions / Standard functions / Windows functions / Application update functions
WINDEV
WindowsLinuxUniversal Windows 10 AppJavaReports and QueriesUser code (UMC)
WEBDEV
WindowsLinuxPHPWEBDEV - Browser code
WINDEV Mobile
AndroidAndroid Widget iPhone/iPadIOS WidgetApple WatchMac CatalystUniversal Windows 10 App
Others
Stored procedures
WLanguage procedure called by AppControl
Procedure ("Callback") called by AppControl to process the remote control messages. This procedure must be global.
Example
// Project initialization code
// Customization with a procedure
AppControl("C:\MyApp\StopFile.Txt", AppControl_Callback)
// ----------------------------------
// -- AppControl_Callback global procedure
PROCÉDURE AppControl_Callback(AccessMode, MessageToDisplay, DispDuration)
SWITCH AccessMode
CASE acForbidden
IF UserName  "ADMIN" THEN Open(WIN_UnableToConnect)
CASE acWarning
IF UserName <>  "ADMIN" THEN Info(MessageToDisplay)
CASE acStop
IF UserName <> "ADMIN" THEN EndProgram()
END
Syntax
AppControl_Callback(<Mode> , <Message> , <Display time>)
<Mode>: Integer constant
Current remote control mode:
acForbiddenAccess denied to the application.
Caution: The program is not automatically stopped when the application is stopped: EndProgram must be found in your code in order to end the application.
acStopApplication shutdown.
acWarningWarning of imminent shutdown.
<Message>: Character string
Message corresponding to the current mode.
<Display time>: Integer
Maximum display time of a window, if any (in seconds).
Minimum version required
  • Version 25
This page is also available for…
Comments
Click [Add] to post a comment

Last update: 06/30/2023

Send a report | Local help