Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Behavior of Grid seems to differ from 8.0 to 7.0
Message
De
19/11/2003 11:37:48
 
 
À
Tous
Information générale
Forum:
Visual FoxPro
Catégorie:
Autre
Titre:
Behavior of Grid seems to differ from 8.0 to 7.0
Divers
Thread ID:
00851481
Message ID:
00851481
Vues:
35
I face the following problem when updating from 7.0 to 8.0 :
When the user enters a grid where he is able to change the current record, I prompt a dialog in the when()-method of the grid where he can decide if he wants to save the changes of the current record, to reject them or to cancel (messagebox ('text', 3)). If he chooses 'cancel' I leave the when()-method with return .F. -> worked perfect in vfp 7.

In vfp8 however, after this return .F. in the when() my changes are saved and the grid changes the current record (an afterrowcolchange() of the grid is also executed).

Is there an explanation or even work around for this different behavior?

One thing I tried already: putting my dialog in the beforerowcolchange() of the grid and processing a "nodefault" if the user changes cancel. But then, when going back to my controls, I get the dialog again (the beforerowcolchange() is executed once more, why?).


Thanks for your answers,

Martin Moll
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform