Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Error 2072 strikes again
Message
From
03/08/2006 08:42:12
Dragan Nedeljkovich
Now officially retired
Zrenjanin, Serbia
 
 
To
03/08/2006 02:30:08
General information
Forum:
Visual FoxPro
Category:
Classes - VCX
Environment versions
Visual FoxPro:
VFP 9 SP1
OS:
Windows XP SP1
Database:
Visual FoxPro
Miscellaneous
Thread ID:
01142562
Message ID:
01142671
Views:
10
>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.
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform