Retro video games delivered to your door every month!
Click above to get retro games delivered to your door ever month!
X-Hacker.org- dBsee 4.6 - The Library - <b>tbeval()</b> http://www.X-Hacker.org [<<Previous Entry] [^^Up^^] [Next Entry>>] [Menu] [About The Guide]
tbEval()
Evaluates a CODEBLOCK on the object's records
------------------------------------------------------------------------------
Syntax:

     tbEval( <oTbr>, <b2Eval> ) --> NIL

Parameters:

     <oTbr>     tBrowse object
     <b2Eval>   CODEBLOCK to evaluate

Returns:

     NIL

Description:

     Evaluates a CODEBLOCK on all records of a given object. N.B. tbEval()
     does not modify the current record.

Example:

     LOCAL nRow := 0
     // initialise the object
     oTbr := tbBrwNew( 0, 0, MAXROW(), MAXCOL() )
     // ...
     tbEval( oTbr, {||nRow++} )
     ? "The object has  " +STR(nRow) +"rows"

See also:

     tbBrwNew(), tbStab()

See Also: tbBrwNew() tbStab()

Online resources provided by: http://www.X-Hacker.org --- NG 2 HTML conversion by Dave Pearson