Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Grid Becomes Invisible After PACK.
Message
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00141685
Message ID:
00141722
Views:
17
>Greetings,
>
>I have a simple grid tied to a table and a command button to delete the current record. If I just mark the record as DELETEd, the grid shows the record as marked. However, if I issue a PACK, the grid immediately disappears. It does not matter whether I am removing the record or keeping others.
>
>If I use an ADD button on the screen, a record is added to the table, but the grid will still not redisplay unless I restart the application. Any ideas?
>
>Thanks!

To add to what David replied, if you just have to pack the table, modify your existing code (This is referring to the Grid):

local lcRecordSource
lcRecordSource = This.RecordSource
* put pack and other code here
This.RecordSource = lcRecordSource
This.Refresh()
Mark McCasland
Midlothian, TX USA
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform