Return the contents of a field or a memory variable.
XSharp.RT (in XSharp.RT.dll) Version: 2.0
cVar AS STRING
) AS USUAL
public static USUAL VarGet(
- Type: String
The name of the field or memory variable.
The value of the field or memory variable. When there is no field and also no memory variable then a runtime error is thrown.
This function is used instead of a macro when the name of the field or memory variable is in a string.
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.