CT_LTOC

 LTOC()
 Converts a logical value into a character
------------------------------------------------------------------------------
 Syntax

     LTOC([<lValue>]) --> cCharacter

 Argument

     <lValue>  Designates the logical value that is converted. The
     default value is .F..

 Returns

     The character returned corresponds to the logical value specified in the
     parameter.

 Description

     In contrast to the LTON() function, which converts a logical value into
     a number, LTOC() returns a value for the type character string.  This
     can be particularly helpful with combined index keys.

 Examples

     .  Without parameters, .F. is assumed:

        ? LTOC()               // "F"

     .  Return a letter that corresponds to the specified logical
        value:

        ? LTOC(.F.)            // "F"

        ? LTOC(.T.)            // "T"

     .  Other functions can return the logical value:

        ? LTOC(DELETED())      // "T" or "F"

See Also: LTON()



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.