ONLINE HELP
 WINDEVWEBDEV AND WINDEV MOBILE

This content has been translated automatically.  Click here  to view the French version.
Help / WLanguage / WLanguage functions / Standard functions / Windows functions / Lock functions
WINDEV
WindowsLinuxJavaReports and QueriesUser code (UMC)
WEBDEV
WindowsLinuxPHPWEBDEV - Browser code
WINDEV Mobile
AndroidAndroid Widget iPhone/iPadIOS WidgetApple WatchMac Catalyst
Others
Stored procedures
LockAppTimeout (Function)
In french: VerrouAppliDélai
Returns or modifies the idle time before a WINDEV application is locked.
Remark: The inactivity timeout corresponds to the time elapsed since the user's last action on the application.
Example
// Verrouillage de l'application si elle n'est pas utilisée pendant 15 minutes 
LockAppTimeout(15)

// Application ne se verrouille plus
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 or 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 correspond to:
  • an integer corresponding to the number of minutes,
  • a Duration variable,
  • the duration in a readable format (e.g., 1 min).
Related Examples:
The Lock functions Unit examples (WINDEV): The Lock functions
[ + ] Using the LockXX functions in order to lock a sensitive application.
Component: wd300gpu.dll
See also
Minimum version required
  • Version 12
This page is also available for…
Comments
Click [Add] to post a comment

Last update: 03/27/2025

Send a report | Local help