>I need to tell wether a variable is an array or not. If I do :
>
>
>
>DIMENSION laArray(2)
>
>laArray(1) = 'My test'
>laArray(2) = 'My test 2'
>
>?VARTYPE(laArray)
>?VARTYPE(laArray(1)
>
>
>
>I get 'C'. This variable will be passed as an array and I need to know if it is an array. How?
Sounds like there is no precise and easy way of knowing if something is an array or not.
You could try to 'produce' an error :
local llIsNotArray
on error llIsNotArray = .t.
alen(laArray)
on error
if llIsNotArray
...
Cetin