HB_IDLEADD()
Adds the background task.
Syntax
HB_IDLEADD( <bAction> ) --> nHandle
Arguments
<bAction> is a codeblock that will be executed during idle states. There are no arguments passed to this codeblock during evaluation.
Returns
<nHandle> The handle (an integer value) that identifies the task. This handle can be used for deleting the task.
Description
HB_IDLEADD() adds a passed codeblock to the list of background tasks that will be evaluated during the idle states. There is no limit for the number of tasks.
Examples
nTask := hb_idleAdd( {|| SayTime() } )
Compliance
Harbour extension similar to FT_ONIDLE() function available in NanForum library.
Platforms
All
Files
src/rtl/idle.c
Seealso
HB_IDLEDEL(), HB_IDLESTATE()
Pingback: Harbour All Functions – H | Viva Clipper !
Pingback: Harbour idle Functions | Viva Clipper !
Pingback: Harbour RG Summary | Viva Clipper !