Functions.IVarGetInfo 方法 |
命名空间: XSharp.RT
FUNCTION IVarGetInfo( oObject AS Object, symInstanceVar AS STRING ) AS DWORD
public static uint IVarGetInfo( Object oObject, string symInstanceVar )
1CLASS A 2 INSTANCE x 3 EXPORT y 4ACCESS z CLASS A 5FUNCTION Start() 6 LOCAL o AS A 7 o := a{} 8? IVarGetInfo(o,#x) // 1 9? IVarGetInfo(o,#y) // 2 10? IVarGetInfo(o,#z) // 3 11? IVarGetInfo(o,#none) // 0