Functions.IVarPutSelf 方法 |
命名空间: XSharp.RT
FUNCTION IVarPutSelf( oObject AS Object, symInstanceVar AS STRING, uValue AS USUAL ) AS USUAL
public static __Usual IVarPutSelf( Object oObject, string symInstanceVar, __Usual uValue )
1CLASS GetVars 2 EXPORT cName 3 INSTANCE cPhone 4 PROTECT cID 5 HIDDEN cPassWord 6FUNCTION Start() 7 LOCAL oVars AS OBJECT 8 oVars := GetVars{} 9 ? IVarPutSelf(oVars, #cName, "Adam") // Adam 10 ? IVarPutSelf(oVars, #cPhone, "4460") // 4460