[<<Previous Entry] [^^Up^^] [Next Entry>>] [Menu] [About The Guide]
 FT_ONTICK()
 Evaluate a designated code block at a designated interval.
------------------------------------------------------------------------------

 Syntax

      FT_OnTick( bCode, nInterval )

 Arguments

     <bCode> is the code block to evaluate.
     <nInterval> is the number of clock ticks to wait between
                 evaluations of the code block.

 Returns

     NIL

 Description

     This function effectively allows you to run tasks in the background
     by transparently and periodically calling a designated routine.

     To halt the execution of the background function, call FT_OnTick()
     with no arguments.

     This function makes heavy use of several undocumented internal
     routines.  If this fact makes you uncomfortable then don't use
     this function, you quivering sack of cowardly slime.

 Examples


     // Set up a self-updating on-screen clock

     FT_OnTick( "CLOCK", 9 )

     procedure Clock

     local nRow := Row()
     local nCol := Col()

     @ 0, 0 say Time()

     SetPos( nRow, nCol )

     return


 Source: ONTICK.C

 Author: Ted Means

This page created by ng2html v1.05, the Norton guide to HTML conversion utility. Written by Dave Pearson