Functions.IvarListClass 方法 |
命名空间: XSharp.RT
FUNCTION IvarListClass( symClass AS STRING ) AS ARRAY
public static __Array IvarListClass( string symClass )
1CLASS Person 2 EXPORT name 3 INSTANCE grade 4 PROTECT password 5CONSTRUCTOR(tname, tgrade, tpassword) 6 name := tname 7 grade := tgrade 8 password := tpassword 9END CLASS 10 11FUNCTION MakeArray() AS VOID 12 LOCAL a AS ARRAY 13 a := IVarListClass(#Person) 14 // 打印它们 15 FOR i := UPTO ALen(a) 16 QOut(a[i]) 17 NEXT 18 // 名称 19 // 年级