PC SOFT

WINDEVWEBDEV AND WINDEV MOBILE
ONLINE HELP

Home | Sign in | English UK
  • Tips
  • Note
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
Allows you to:
  • define a timeout,
  • give control back to Windows,
  • give control back to Windows and to WLanguage.
Versions 17 and later
Linux This function is now available for WINDEV applications in Linux.
WEBDEV - Server codeLinux This function is now available for WEBDEV sites in Linux.
New in version 17
Linux This function is now available for WINDEV applications in Linux.
WEBDEV - Server codeLinux This function is now available for WEBDEV sites in Linux.
Linux This function is now available for WINDEV applications in Linux.
WEBDEV - Server codeLinux This function is now available for WEBDEV sites in Linux.
Example
// Calculation loop
FOR i = 1 to 10000
CalculationProcedure(i)
// Give control back to the system in order to display the results
Multitask()
END
// Wait 1 second
Multitask(100)
Syntax
Multitask([<Timeout>])
<Timeout>: Optional integer or optional Duration
  • Define a timeout: <Timeout> = positive integer.
    The execution of the application is interrupted during <Timeout> hundredths of a second without giving control back to the system. The mouse clicks and the actions performed on the keyboard keys are ignored by the application. For example, the window can be moved but it cannot be resized.
    The optional processes of controls are always run.
    Note: If <Timeout> = 1, the application gives control back to Windows without waiting during 1 hundredth of a second.
    PHP In PHP, the values of <Timeout> are rounded to the higher second. For example, if <Timeout> is equal to 125, the actual timeout will be equal to 2 seconds.
    Linux The positive values are not allowed.
  • Giving control back to Windows: <Timeout> = 0 or is not specified.
    Windows ends the current processes, gives control back to the WINDEV application, then takes into account the mouse clicks and the actions performed on the keyboard keys.
  • Give control back to Windows and to the WLanguage: <Timeout> = negative integer.
    The execution of the application is interrupted during <Timeout> hundredths of a second. Other processes can be run during this time period (redisplaying or running a click code for example). The interactions with the users (mouse click, keystroke, ...) are processed as usual.
    Note: If <Timeout> = -1, the application gives control back to Windows without waiting during 1 hundredth of a second.
Note: This parameter can correspond to:
  • an integer corresponding to the number of hundredths of a second,
  • a Duration variable,
  • Versions 23 and later
    the direct indication of the duration ('1s' or '10cs' for example).
    New in version 23
    the direct indication of the duration ('1s' or '10cs' for example).
    the direct indication of the duration ('1s' or '10cs' for example).
PHP This parameter can only correspond to an integer.
Remarks

Tips

  • To refresh the display, we recommend that you use MultitaskRedraw.
  • The events and timers started before the execution of Multitask are managed during the timeout.
  • In a Service application, Multitask must be replaced by ServiceWait.

Note

We recommend that you use ThreadPause instead of Multitask or Timeout when several threads are used (including for the main application thread) if the user actions do not have to be processed by the timeout.
Component : wd240obj.dll
Minimum version required
  • Version 9
This page is also available for…
Comments
Click [Add] to post a comment