Click or drag to resize

AsSymbol Function

Convert a string or a PSZ to a symbol.

Namespace:  XSharp.RT
Assembly:  XSharp.RT (in XSharp.RT.dll) Version: 2.08
Syntax
 FUNCTION AsSymbol(
	uValue AS USUAL
) AS SYMBOL
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#
symFind := AsSymbol("ALongPassword!")
        // Do a faster search
AScan(aSymList, symFind)
See Also