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_ctol() http://www.X-Hacker.org [<<Previous Entry] [^^Up^^] [Next Entry>>] [Menu] [About The Guide]
 C_CTOL()

 DESCRIPTION

 C_CTOL() converts a character string to a logical data type.  The
 string must contain certain values (see parameters below)
 equivalent to a logical data type.

 SYNTAX

 C_CTOL(string)

 PARAMETERS

 string (C) is the character string to convert containing one of the
 following true expressions:  "T", ".T.", "TRUE", "ON", "YES", "1";
 or one of the following false expressions:  "F", ".F.", "FALSE",
 "OFF", "NO", "0".

 RETURNS

 C_CTOL() returns true (.T.) if one of the expressions for true
 (.T.) is specified, otherwise false (.F.).

 EXAMPLES

 ? c_ctol("TRUE")  --> .T.      && True values
 ? c_ctol("T")     --> .T.
 ? c_ctol("YES")   --> .T.

 ? c_ctol("FALSE") --> .F.      && False values
 ? c_ctol("F")     --> .F.
 ? c_ctol("NO")    --> .F.


See Also: C_LTOC()

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