Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
C0000005 Error
Message
General information
Forum:
Visual FoxPro
Category:
Other
Title:
Miscellaneous
Thread ID:
00205610
Message ID:
00205663
Views:
18
>I made a trace and I can see that VFP crash when after create a cursor via SQL I assign the cursor name to oGrid.RecordSource property.

You may make your code to work safer if you unlink grid from data before making any modifications with its recordsource and link it again when cursor is ready:
Grid.Recordsource=""
Select ....
...
Grid.Recordsource="mycursor"
Grid.Refresh

Just try it. This code does not guarantee that everything will look nicely, but at least it should work.
One more tip: it's reasonable to shift focus out of grid before you start rebuilding grid cursor.
Edward Pikman
Independent Consultant
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform