Hi Simon,
Does it gives an error in following situations?
LOCATE For This.colCA("AGMASTER").IsSelected(ID)
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
--sb--