Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Error 2072 strikes again
Message
De
03/08/2006 08:42:12
Dragan Nedeljkovich
Now officially retired
Zrenjanin, Serbia
 
 
À
03/08/2006 02:30:08
Information générale
Forum:
Visual FoxPro
Catégorie:
Classes - VCX
Versions des environnements
Visual FoxPro:
VFP 9 SP1
OS:
Windows XP SP1
Database:
Visual FoxPro
Divers
Thread ID:
01142562
Message ID:
01142671
Vues:
18
>if this work, try to minimize this code until it work
>
> grid.visible = .f.
> grid.enabled = .f.
> zap
> grid.refresh
> insert ...
> grid.refresh
> grid.enabled = .t.
> grid.visible = .t.
>
>A drastic solution is:
>
>grid.recordsource = grid.recordsource
>
The code which handles the cursor is in a .prg based bizobject. The grid may or may not exist while the cursor is zapped and filled (instantiated when needed). Referencing the grid from there would be tricky in the least, but can be done.

And this is funny... I've switched to a CREATEd cursor, and it works now, except that the grid seems blank until I open another window. Seems to need an extra refresh - yep, that works.

So it was probably that "select * ... where .f. ... readwrite" wasn't really respecting the implied NOFILTER, and the cursor behaved pretty much like a view. Very interesting.

back to same old

the first online autobiography, unfinished by design
What, me reckless? I'm full of recks!
Balkans, eh? Count them.
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform