local myArray
creates a memvar called myArray with a value of .f.
This is not an array.
dimension myArray[1]
converts it from a memvar to an array
>James, thanks for your solution,
>
>Why do you also need to say its an array... you dont need to do this with Numeric and Character or logical variables. 'Localizing ' them seems to be enough.
>
>regards,
>
>Gerard
>
>
>>Gerard,
>>
>>You must declare the variable local
>>
>>
LOCAL myArray
>>
>>AND declare it to be an array,
>>
>>
DIMENSION myArray( 1 )
>>
>>There are a number of ways of doing both at the same time, but I like the two-step process to make certain I don't forget to do it.
>>
>>Regards,