Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Grid error - Cannot access the selected table
Message
De
03/01/2008 14:50:51
 
 
À
03/01/2008 11:33:35
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:
01279331
Vues:
12
>I'm getting the error "Cannot access the selected table" when referencing a grid as in
>
>THIS.GRID.SETALL("MousePointer",11)

>
>I tested this in one of my working production forms by putting this line:
>
>
>thisform.grdlv_count_dtl.SetAll( [Mousepointer], 11 )
>
>
>in the form's Init() and it worked without any problems.
>
>Where in the calling stack are you trying to execute this code?
Just a regular method called way after everything has been instantiated.

>I assume that your grid is not really named grid, is it?
Yes (as in THISFORM.Grid). Why might that be a problem?

I should probably mention that the method in which this error occurs is run twice - the first time without error. The cursor to which the grid is bound is maybe (not sure - need to dig) being re-created but with the same name and fields.

Oddly (if it's a binding problem) I can't even issue 'ThisForm.Grid.RecordSource=""' without getting the error....

Regards,
Viv
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform