AsSymbol Function | |
Convert a string or a PSZ to a symbol.
Namespace:
XSharp.RT
Assembly:
XSharp.RT (in XSharp.RT.dll) Version: 2.21
Syntax FUNCTION AsSymbol(
uValue AS USUAL
) AS SYMBOL
public static Symbol AsSymbol(
Usual uValue
)
Request Example
View SourceParameters
- 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.
1symFind := AsSymbol("ALongPassword!")
2
3AScan(aSymList, symFind)
See Also