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>tbgetvar()</b> http://www.X-Hacker.org [<<Previous Entry] [^^Up^^] [Next Entry>>] [Menu] [About The Guide]
tbGetVar()
Take the value of a CONTROL on the object
------------------------------------------------------------------------------
Syntax:

     tbGetVar( <oTbr>, <cID>, [<uVal>] ) --> uVar

Parameters:

     <oTbr>     tBrowse on which the control resides
     <cID>      ID of the control to look for
     <uVal>     Value to assign
     Type of Control
     +------------------------+
     | Control     |Read|Write|
     |-------------+----+-----|
     |CTRL_SAY     | X  |     |
     |CTRL_FUNCTION| X  |     |
     |CTRL_GET     | X  |  X  |
     |CTRL_CMB     | X  |  X  |
     |CTRL_TEXT    | X  |  X  |
     |CTRL_CHECK   | X  |  X  |
     |CTRL_RADIO   | X  |  X  |
     |CTRL_SPIN    | X  |  X  |
     +------------------------+

Returns:

     <uVar> Value of the given CONTROL

Description:

     The function returns the value of the control, referenced by the ID,
     on the object passed as parameter. Instead of passing the object's
     name directly, it is also possible to use the ACT() method of the
     object. This function activates an object which is returned as the
     return value.

Example:

     // Return the CONTROL value
     ? tbGetVar( oMyForm, "get0002" )      // Ex. "John"
     ? tbGetVar( oMyForm, "get0002", "Max" ) // Assign
     // Use the ACT method
     ? tbGetVar( Arti010ACT(), "cmb0001" ) // Ex. 100

See also:

     tbCtrlArr(), tbGetLsb()

See Also: tbCtrlArr() tbGetLsb()

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