Retro video games delivered to your door every month!
Click above to get retro games delivered to your door ever month!
X-Hacker.org- Clipper Tools One Guide - <b>lton()</b> http://www.X-Hacker.org [<<Previous Entry] [^^Up^^] [Next Entry>>] [Menu] [About The Guide]
LTON()

Syntax:     LTON(<expL>)

Arguments:  <expL> is the logic expression to be converted.

Returns:    A numeric value.
            (.T.) produces a 1, (.F.) produces a 0.

Usage:      LTON() can be used to convert a logic value into a
            numerical one.  It is also possible index on a logic
            field using this function.

Notes:      The function will default to (.F.) if no argument is passed.

Library:    CT1.LIB


--------------------------------- Example ------------------------------

Examples:   * Determine the number of days in a year.

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



See Also: CTON()

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