Click or drag to resize

IsString Function

Determine if a value is a string.

Namespace:  XSharp.RT
Assembly:  XSharp.RT (in XSharp.RT.dll) Version: 2.08
Syntax
 FUNCTION IsString(
	uValue AS USUAL
) AS LOGIC
View Source

Parameters

uValue
Type: Usual
The value to examine.

Return Value

Type: Boolean
TRUE if the value is a string; otherwise, FALSE.
Remarks
Examples
This example uses IsString() to determine whether to query users for a file name:
X#
FUNCTION TBDemo(cFile)
        IF !IsString(cFile)
                cFile := Space(12)
                ? "Input correct file name"
        ENDIF
See Also