Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
TableRevert and Grid RecordSource query
Message
 
 
À
14/09/2011 04:18:27
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Divers
Thread ID:
01523493
Message ID:
01523505
Vues:
47
>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
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform