Click or drag to resize

LTOC Function

Convert a logical value to a string.

Namespace:  XSharp.Core
Assembly:  XSharp.Core (in XSharp.Core.dll) Version: 2.10
Syntax
 FUNCTION LTOC(
	lValue AS LOGIC
) AS STRING
View Source

Parameters

lValue
Type: Boolean
The logical value to convert.

Return Value

Type: String
Remarks
LToC() is useful in forming combined indexes.
Examples
This example uses LToC() to write the return value of a logical function to a text file:
X#
FWriteText(ptrHandle, LToC(Deleted()), 1)
This example uses LToC() to form a combined string expression:
X#
? LToC(_FIELD->lRegister) + _FIELD->cName
See Also