LTOC Function | |
Convert a logical value to a string.
Namespace:
XSharp.Core
Assembly:
XSharp.Core (in XSharp.Core.dll) Version: 2.21
Syntax FUNCTION LTOC(
lValue AS LOGIC
) AS STRING
public static string LTOC(
bool lValue
)
Request Example
View SourceParameters
- lValue
- Type: Logic
The logical value to convert.
Return Value
Type:
StringRemarks
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:
1FWriteText(ptrHandle, LToC(Deleted()), 1)
This example uses LToC() to form a combined string expression:
1? LToC(_FIELD->lRegister) + _FIELD->cName
See Also