[<<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()
This page created by ng2html v1.05, the Norton guide to HTML conversion utility. Written by Dave Pearson