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>tbsetkey()</b> http://www.X-Hacker.org [<<Previous Entry] [^^Up^^] [Next Entry>>] [Menu] [About The Guide]
tbSetKey()
Sets the filter condition
------------------------------------------------------------------------------
Syntax:

     tbSetKey( <oTbr>, [<nTbOrd>],;
               [<bTbKey>], [<bTbFlt>], [<bTbBrk>] ) --> NIL

Parameters:

     <oTbr>     tBrowse object
     <nTbOrd>   Set order to. If not specified, the current index will be
     used.
     <bTbKey>   Key expression. Default NIL.
     <bTbFlt>   Filter expression. Default NONE.
     <bTbBrk>   Break condition. Default NONE.

Returns:

     NIL

Description:

     Updates the conditions that specify what records are displayed in the
     object. If the current record does not satisfy the specified
     conditions, the file will be positioned on the 1st record that
     satisfies them.

Example:

     // create a new tBrowse
     LOCAL oTbr := tbBrwNew( 3, 10, 13, 75 )
     // ...
     // Set the TBrowse to display all invoice rows that
     // belong to the same invoice header
     tbSetKey( oTbr                               ,;
               1                                  ,;
               {||InvHea->InvCod                  ,;
               {||InvRow->InvCod==InvHea->InvCod} ,;
               {||InvRow->InvCod!=InvHea->InvCod}  )

See also:

     tbBrwNew()

See Also: tbBrwNew()

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