Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
TableRevert and Grid RecordSource query
Message
 
 
To
14/09/2011 04:18:27
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
01523493
Message ID:
01523505
Views:
50
>Not really a problem, as I have sorted it out, but just a question if this is expected behaviour:
>
>I have a form with a grid bound to a table. If I add a record directly into the grid by issuing Append Blank, entereing data in the grid fields and then decide to cancel the addition by Clicking a Cancel command button and issuing TABLEREVERT(.T.) all the data in the grid blanks out. I have to reset the recordsource immediately after the Tablerevert to bring the data back into view - i.e.:
>
>THISFORM.myGrid.RecordSource = "myTable"
>
>
>I had expected to be able to issue thisform.mygrid.refresh() but this does not give consistent results - sometimes leaving the grid blank. Resetting the recordsource does give the expected result. Is this normal behaviour and am I handling it correctly?
>
>Thanks
>Barry Sutton.

No, the behavior is not normal.
If it's not broken, fix it until it is.


My Blog
Previous
Reply
Map
View

Click here to load this message in the networking platform