Hi Sergey
I will give it a try and let you know. I believe it works fine but I will double check.
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