Hi Sergey
I finally had a chance to the test your suggestions:
m.somevariable = This.colCA("AGMASTER").IsSelected(ID)
LOCATE For This.colCA("AGMASTER").IsSelected(ID)
Locate and Scan both product the same error message.
Simon
>Hi Simon,
>
>Does it gives an error in following situations?
LOCATE For This.colCA("AGMASTER").IsSelected(ID)
>* or
>m.somevariable = This.colCA("AGMASTER").IsSelected(ID)
>
>
>>The following code in VFP 8.0 produces an "Invalid Subscript Error"
>>
>>Scan For This.colCA("AGMASTER").IsSelected(ID)
>>...
>>
>>If I change the code to:
>>
>>Local lo
>>lo=This.colCA("AGMASTER") && Cursor Adapter object reference
>>Scan For lo.IsSelected(ID)
>>...
>>
>>everything work fines.
>>
>>
>>Thanks,
>>Simon
Simon White
dCipher Computing