How to save parameter names and types into other arrays?
The input file below starts with creating several parameters of various types then the commands that save all the parameter names and types into two arrays. If you only want to see a certain type, then after creating these two macros, check the value in the type array and only copy the names into a new string array of those that are of the desired type. As parameters are created and deleted (including those used by the GUI), the loc values can change. !test data aa=1 bb='abc' *dim,cc,array,4 *dim,qq,table,5,2 *dim,ee234567890,char,10 *dim,dd123456789,string,32 *stat ! ii=0 pcount=0 *dim,pname,string,32,1 *dim,ptype,array,1 *get,pcount,parm,,max pname(1)= ptype(1)= *dim,pname,string,32,pcount *dim,ptype,array,pcount *do,ii,1,pcount *get,pname(1,ii),parm,,loc,ii *get,ptype(ii),parm,%pname(1,ii)%,type *enddo ! *stat,pname(1) *stat,ptype(1) |
||
|