>Good point. The procedure GetGlobal() does exist. But the value returned from GetGlobal(2) is .F. when the array which is used to get the value is not yet defined. And once the array is defined, then GetGlobal(2) returns the folder name. So, what I did with the Dragan's suggestion is as follows:
>
>if type("GetGlobal(2)") = "C"
> *-- Array is define and GetGlobal(2) returns a valid folder name
>else
> *-- Array is not yet define and GetGlobal(2) SHOULD NOT be used
>endif
>
>
>Please let me know if the above is not correct.
>
>Thank you.
Array is defined / not yet defined.
Sorry, could not resist :)
If it's not broken, fix it until it is.
My Blog