hb_idleAdd()

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()

Advertisements

3 responses to “hb_idleAdd()

  1. Pingback: Harbour All Functions – H | Viva Clipper !

  2. Pingback: Harbour idle Functions | Viva Clipper !

  3. Pingback: Harbour RG Summary | Viva Clipper !

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s