Click or drag to resize

AsSymbol Function

X#
Convert a string or a PSZ to a symbol.

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

Parameters

uValue
Type: Usual
The value to be converted.
Possible data types for uValue are STRING, PSZ, or SYMBOL.

Return Value

Type: Symbol
The converted value as a symbol.
Remarks
Examples
This example converts a string to a symbol.
One reason for doing this is to boost performance, since symbol comparisons are faster than string comparisons.
X#
1symFind := AsSymbol("ALongPassword!")
2    // Do a faster search
3AScan(aSymList, symFind)
See Also