MemVarGet Function |
Namespace: XSharp.RT
[NeedsAccessToLocalsAttribute(FALSE)] FUNCTION MemVarGet( cVarName AS STRING ) AS USUAL
[NeedsAccessToLocalsAttribute(false)] public static Usual MemVarGet( string cVarName )
Tip |
---|
Dynamic memory variables (PUBLIC, PRIVATE, PARAMETERS) are supported in the X# language and runtime for compatibility only. In most cases the type can and should be replaced with lexically scoped variables, such as LOCALs and GLOBALs. |
1cPrivate := "hi" 2cHasName := "cPrivate" 3// Instead of ? &cHasName, use this: 4? MemVarGet(cHasName) // hi