ONLINE HELP
 WINDEVWEBDEV AND WINDEV MOBILE

Help / WLanguage / WLanguage functions / Standard functions / Windows functions / Lock 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
LockAppTimeout (Function)
In french: VerrouAppliDélai
Returns or modifies the idle time before a WINDEV application is locked.
Remark: The idle time corresponds to the time passed since the last action performed by the user on the application.
Example
// Lock the application if it is not used during 15 minutes
LockAppTimeout(15)
 
// Application does not lock anymore
LockAppTimeout(-1)
Syntax

Finding out the idle time Hide the details

<Result> = LockAppTimeout()
<Result>: Integer
  • Idle time (expressed in minutes) before the application is locked.
  • 0 (default value) means that the "Application lock" feature was not enabled.

Modifying the idle time Hide the details

LockAppTimeout(<New timeout>)
<New timeout>: Integer ou Duration
  • Idle time before the application is locked (expressed in minutes).
  • If this value is set to 0, the feature is disabled (the application will never be locked).
This parameter can be:
  • an integer corresponding to the number of minutes,
  • a Duration variable,
  • the direct indication of duration (1 min for example).
Related Examples:
The Lock functions Unit examples (WINDEV): The Lock functions
[ + ] Using the LockXX functions in order to lock a sensitive application.
Component: wd290gpu.dll
See also
Minimum version required
  • Version 12
This page is also available for…
Comments
Click [Add] to post a comment

Last update: 06/22/2023

Send a report | Local help