Functions.MemVarPut Method |
Namespace: XSharp.RT
FUNCTION MemVarPut( cVarName AS STRING, uValue AS USUAL ) AS USUAL
public static __Usual MemVarPut( string cVarName, __Usual uValue )
![]() |
---|
This function allows the direct manipulation of a memory location and should be used with extreme care. |
![]() |
---|
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. |
LOCAL cHasName AS STRING cHasName := "cPrivate" // Instead of &cHasName := "new", use this: MemVarPut(cHasName, "new") ? cPrivate // new
MemVarPut("cVar", "hi") ? _MEMVAR->cVar // hi
Copyright © 2015-2019 XSharp BV, All rights reserved