Functions.IVarGet 方法 |
命名空间: XSharp.RT
FUNCTION IVarGet( oObject AS Object, symInstanceVar AS STRING ) AS USUAL
public static __Usual IVarGet( Object oObject, string symInstanceVar )
1CLASS GetVars 2 EXPORT cName 3 INSTANCE cTrick 4CONSTRUCTOR CLASS GetVars 5 cName := "Eve" 6 cTrick := "Apple" 7END CLASS 8 9FUNCTION Start() 10 LOCAL oVars AS OBJECT 11 oVars := GetVars{} 12 ? IVarGet(oVars, #cName) // Eve