CT_LTON

 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()



Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Google photo

You are commenting using your Google account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s

This site uses Akismet to reduce spam. Learn how your comment data is processed.