>>>Hi All,
>>>
>>>I'm currently encountering a quirck in my code:
>>>
local array laFld[ 12 ]
>>>laFld = ''
>>>After the first line the array is nicely created:
>>>
LAFLD Local A
>>> ( 1) L .F.
>>> ( 2) L .F.
>>> ( 3) L .F.
>>> ( 4) L .F.
>>> ( 5) L .F.
>>> ( 6) L .F.
>>> ( 7) L .F.
>>> ( 8) L .F.
>>> ( 9) L .F.
>>> ( 10) L .F.
>>> ( 11) L .F.
>>> ( 12) L .F.
>>>After the second line the array is gone and replaced by a simple variable:
>>>
LAFLD Local C ""
>>>This finding is equal with other array names and other indexes (instead of 12).
>>>
>>>It's in VFP7 SP1, W2K.
>>>
>>>Is this happening to others too, occasionally?
>>
>>Peter,
>>
>>I guess that
SET COMPATIBLE ON>>
>>It's described in the help of the STORE command
>>
>>Help excerpt
>>STORE initializes every element in the arrays to the specified value if SET COMPATIBLE is OFF. STORE stores the specified value to memory variables of the specified names if SET COMPATIBLE is ON, overwriting any existing arrays that have those names.
>>>
>You made my day! Thanks!
You're welcome, Peter. Have a nice one (day)
Gregory