Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Grid error - Cannot access the selected table
Message
De
05/01/2008 06:11:47
 
 
À
05/01/2008 00:20:22
Information générale
Forum:
Visual FoxPro
Catégorie:
Problèmes
Versions des environnements
Visual FoxPro:
VFP 8 SP1
OS:
Windows XP SP2
Database:
Visual FoxPro
Divers
Thread ID:
01279248
Message ID:
01279588
Vues:
16
>Hi,
>
>>See also Cannot access selected table error FAQ #18812
>
>Thx. That did lead me to the problem - which wasn't the data binding for the grid but the Rowsource for a combobox in one of the columns (The underlying cursor was being rebuilt)
>
>Did find an oddity though:
>The grid is built on the fly so, to enable me to reset the RowSource on the combobox, I added a form property to hold a reference to it. I found that unless this was NULLed before closing the form VFP threw a fatal error :={
>
>Regards,
>Viv

Viv,

did you read my suggestion, message#1279359? My point is to never rebuild the cursor, instead you use the same cursor all the time. Then you don't have to recreate the grid every time you select new data. Very easy to implement, and will remove most of your problems.
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform