ONLINE HELP
 WINDEVWEBDEV AND WINDEV MOBILE

This content has been translated automatically.  Click here  to view the French version.
Help / WLanguage / WLanguage syntax / Structured statements
WINDEV
WindowsLinuxJavaReports and QueriesUser code (UMC)
WEBDEV
WindowsLinuxPHPWEBDEV - Browser code
WINDEV Mobile
AndroidAndroid Widget iPhone/iPadIOS WidgetApple WatchMac Catalyst
Others
Stored procedures
The instruction USE ... IN is used to automatically start and stop a timer.
This instruction mainly simplifies the accumulation of stopwatches over several iterations.
If the stopwatch is stopped at the beginning of the block, it is automatically triggered when exiting the block.
Example
c is Chrono

USING c IN
	ThreadPause(2 s)
	IF True THEN
		BREAK
		// Le calcul du chronomètre s'arrête
	END
END

ThreadPause(2 s) // Ce code n'est pas pris en compte dans le calcul du chronomètre

USING c IN
	ThreadPause(2 s)
END

Info(c)
Syntax
USING <Stopwatch> IN

    ...
END
<USING IN>:
Marks the beginning of the statement block.
<Stopwatch>: Chrono variable
Name of the Chrono variable that corresponds to the time calculation to make.
Minimum version required
  • Version 24
This page is also available for…
Comments
Click [Add] to post a comment

Last update: 06/18/2025

Send a report | Local help