>>Hi,
>>I'm getting the error "Cannot access the selected table" when referencing a grid as in
THIS.GRID.SETALL("MousePointer",11)
I'm assuming that the problem is related to databinding but all appears OK in the debugger. I can't trap the error using TRY...CATCH and subsequent references are OK.
>>
>>Guess my VFP's a bit rusty so any suggestions welcome,
>>Regards,
>>Viv
>
>Where do you have this code?
Just a regular method. No timer, event trigger etc....
Is the name of the grid GRID?
Yes (as in THISFORM.Grid). Why might that be a problem?
>What if you rename it?
Dunno, but I bet no change <s>..
>See also
Cannot access selected table error FAQ #18812
This may be relevant although the context is a listbox rather than a grid.
It's possible that the cursor is being recreated with the same name but in a different work area. I'll dig a bit on this.
Thx,
Viv