Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
No table is open in the current work area
Message
From
08/01/2008 02:30:28
 
 
To
07/01/2008 17:46:45
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Environment versions
Visual FoxPro:
VFP 9 SP2
OS:
Windows XP SP2
Network:
Windows 2000 Server
Database:
Visual FoxPro
Miscellaneous
Thread ID:
01280061
Message ID:
01280154
Views:
23
Naomi's URL points you to an article which describes both how and why you should use another techniques than setting the recordsource to empty. To ease the reading pain, this is the short version of this technique:
Select whatever into cursor curdummy && Your usual select statement, but into a dummy cursor
Select yourcursor && yourgrid.recordsource
Zap
Append from dbf('curdummy')
yourgrid.refresh()
As you see the change in code is very little, but the impact is huge.

>Hi all,
>
>i have a grid on a form. from time to time i put the recordsource of the grid blanc.
>thisform.mygrid.recordsource =''.
>
>Most of the time this works well but from time to time i get an error message like :
>no table is open in the current work area when i emtpy the recordsource.
>
>anybody has an idea whats going wrong ?
>
>thnx
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform