Wilson WindowWare Tech Support

WinBatch WinBatch+Compiler WebBatch
Home | Tech Database | Tech BBS | White Papers | Purchase


Is it an Array?

Keywords:   is it an array isarr

Question:

Is there a function that checks to see if a variable is an array?

Such as:

IsArr(a)???

Answer:

Yes, the function VarType will retrun 256 if the variable passed is the type array....
#DefineFunction IsArray(item)
return(vartype(item)==256)
#Endfunction

myarray=ArrDimension(1,2,3,4,5)
bool=isarray(myarray)
exit

Article ID:   W14824