Retro video games delivered to your door every month!
Click above to get retro games delivered to your door ever month!
X-Hacker.org- ClipOn 3.0 Reference - c_ltoc() http://www.X-Hacker.org [<<Previous Entry] [^^Up^^] [Next Entry>>] [Menu] [About The Guide]
 C_LTOC()

 DESCRIPTION

 C_LTOC() converts a logical data type to a character string in one
 of several formats (see parameters below).

 SYNTAX

 C_LTOC(log [,type])

 PARAMETERS

 log (L) is the logical data type to convert.

 type (N) is the format type (1 - 6) to convert the logical data.
 If type is not specified, format type 1 is used.  The format types
 are as follows:

 TYPE   FORMAT (DEPENDING ON LOGICAL DATA TO CONVERT)
 ----   ---------------------------------------------
 1      ".T." or ".F."
 2      "T" or "F"
 3      "TRUE" or "FALSE"
 4      "ON" or "OFF"
 5      "YES" or "NO"
 6      "1" or "0"

 RETURNS

 C_LTOC() returns a character string.

 EXAMPLES

 ? c_ctol(.t.)     --> .T.         && Conversions for true (.T.)
 ? c_ctol(.t.,3)   --> TRUE
 ? c_ctol(.t.,2)   --> T
 ? c_ctol(.t.,5)   --> YES

 ? c_ctol(.f.,3)   --> FALSE       && Conversions for false (.F.)
 ? c_ctol(.f.)     --> .F.


See Also: C_CTOL()

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