Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Why MSDN Help doesn't help me?
Message
 
À
Tous
Information générale
Forum:
Visual FoxPro
Catégorie:
Autre
Titre:
Why MSDN Help doesn't help me?
Divers
Thread ID:
00412357
Message ID:
00412357
Vues:
77
Where is the NODEFAULT keyword in the MSDN help? Using Index tab to search for the word, it points me to the right keyword, but pressing ENTER, it points me to DEFINE CLASS.

The problem:
Using VFP6 SP4, NODEFAULT in QueryUnload doesn't behave properly. We don't have this problem in SP3.

The scenario:
We have a form class. In QueryUnload, we validate the edit status of the form. If it's in EDIT mode and the user want to close the form, a messagebox will appear in the screen asking whether to Save (Yes), Undo (No), or cancel the closing of the form. If the user chooses Yes Or No, all is Ok but if Cancel, closing will not continue but clicking Save or Revert button again, it does not perform the behaviour we want. It doesn't enable or disable the controls which is normally Ok. It seems to me that SP4 fixes some bugs but it creates bugs as well. Any ideas?

Here is the code:
If Thisform.EditMode
    ans = MessageBox("Save changes?",MSG_YES_NO_CANCEL,"Close Form?")
    Do Case
    Case ans = 6
       Thisform.SaveEnent(.T.)
    Case ans = 7
       Thisform.SaveEvent(.F.)
    Otherwise 
       Nodefault
    Endcase   
Endif
Above works fine in SP3.
JESS S. BANAGA
Project Leader - SDD division
...shifting from VFP to C#.Net

CHARISMA simply means: "Be more concerned about making others feel good about themselves than you are in making them feel good about you."
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform