Click or drag to resize

IsString Function

X#
Determine if a value is a string.

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

Parameters

uValue
Type: Usual
The value to examine.

Return Value

Type: Logic
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#
1FUNCTION TBDemo(cFile)
2    IF !IsString(cFile)
3        cFile := Space(12)
4        ? "Input correct file name"
5    ENDIF
See Also