Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Can I get a cursor from another form?
Message
General information
Forum:
Visual FoxPro
Category:
Databases,Tables, Views, Indexing and SQL syntax
Miscellaneous
Thread ID:
00187252
Message ID:
00187271
Views:
22
>>..and have a great weekend!
>
>Oh no,
>not yet. I have another problem, connected with the cursor. When I close the Print Form, and go back to my first Form, I can not fill the grid again.
>This means, I do THISFORM.myGrd.RECORDSOURCE = "" before filling it again, but the message appears, 'Unknown Member clmMyColumn'.
>I know this error, if I forget to set Recordsource to "".
>Also, why is my grid empty when opening the other form? Has this something to do with the cursor, which is actually the source of the grid?
>Hmm, hope someone can help me...

Try subclassing the grid and embedding the RecordSource in the subclassed grid. Then you programmatically remove and then add the grid to your form. This then has all the 'pre-coded' stuff in it (column headers, widths, data, etc).
Nigel B Coates
NBC Software Services
Dublin, Ireland.
eMail: Nigel.Coates@NBCSoftware.com
Previous
Reply
Map
View

Click here to load this message in the networking platform