Functions.IVarPutInfo 方法 |
命名空间: XSharp.RT
FUNCTION IVarPutInfo( oObject AS Object, symInstanceVar AS SYMBOL ) AS DWORD
public static uint IVarPutInfo( Object oObject, __Symbol symInstanceVar )
1CLASS A 2 INSTANCE x 3 EXPORT y 4ASSIGN z(value) CLASS A 5 z := value 6 RETURN value
1FUNCTION Start() 2 LOCAL o AS A 3 o := a{} 4? IVarPutInfo(o,#x) // 1 5? IVarPutInfo(o,#y) // 2 6? IVarPutInfo(o,#z) // 3 7? IVarPutInfo(o,#none) // 0