Retro video games delivered to your door every month!
Click above to get retro games delivered to your door ever month!
X-Hacker.org- CA-Clipper Tools . Books 1-3 - <b>lton()</b> http://www.X-Hacker.org [<<Previous Entry] [^^Up^^] [Next Entry>>] [Menu] [About The Guide]
 LTON()
 Converts a logical value into a numeric value
------------------------------------------------------------------------------
 Syntax

     LTON([<lValue>]) --> nLogicalValue

 Argument

     <lValue>  Designates the logical expression to convert.  The default
     value is .F..

 Returns

     If you designate a .T., LTON() returns a 1; with .F., it returns a 0.

 Description

     LTON() converts a logical value into a numeric value.  This allows
     indexing on a logical field.

 Note

     .  The function treats a missing parameter as .F..

 Example

     Determines the number of days in a year:

     ? "The year has " + STR(365 + LTON(ISLEAP()), 3) + "  days."


See Also: CTON()

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