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