Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
No table is open in the current work area
Message
De
08/01/2008 02:30:28
 
 
À
07/01/2008 17:46:45
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Versions des environnements
Visual FoxPro:
VFP 9 SP2
OS:
Windows XP SP2
Network:
Windows 2000 Server
Database:
Visual FoxPro
Divers
Thread ID:
01280061
Message ID:
01280154
Vues:
25
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
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform