Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Local var not local
Message
 
 
To
24/10/2001 17:40:25
John Deupree
Long Term Care Authority
Tulsa, Oklahoma, United States
General information
Forum:
Visual FoxPro
Category:
Troubleshooting
Miscellaneous
Thread ID:
00572823
Message ID:
00572928
Views:
18
This message has been marked as the solution to the initial question of the thread.
>The problem was setting nColumnCount to the grid columncount. When I re-exectuted the SQL statement, it closed the cursor and recreated it. That meant that all the grid controls were gone and had to be reset. When I reset the grid record source to the cursor, it automatically set the grid columns to the # of columns in the cursor (5). Something probably everyone else knew but that I just learned.

I see. To prevent this you can set grid recorsource to the empty string, recreate cursor and set recordsource back to the cursor.
THISFORM.grdfind.RECORDSOURCE = ""
* Recreate cursor here
THISFORM.grdfind.RECORDSOURCE = THIS.ccursorname
< snip >
--sb--
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform