Click or drag to resize

LTOC Function

X#
Convert a logical value to a string.

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

Parameters

lValue
Type: Logic
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#
1FWriteText(ptrHandle, LToC(Deleted()), 1)
This example uses LToC() to form a combined string expression:
X#
1? LToC(_FIELD->lRegister) + _FIELD->cName
See Also