Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Pagex.deactivate()
Message
 
À
17/05/1998 21:18:16
Information générale
Forum:
Visual FoxPro
Catégorie:
Gestionnaire d'écran & Écrans
Divers
Thread ID:
00100020
Message ID:
00100053
Vues:
71
>I had this working in VFP3 but in VFP5 I can't.
>I thought that returning .F. in the Page.deactivate would prevent the clicked tab page from activating.
>Here's some code
>
>* --- Page1.deactivate ---
>RETURN THIS.PARENT.deactivatePage()
>
>* --- Pageframe.deactivatePage --- (custom method)
>RETURN THISFORM.Save()
>
>
>Now if the user clicks on Page 2's tab and the Save() returns .F. I would expect Page 1 to stay active.
>So I've gone wrong somewhere, 'cause it's not working. Any clues?

Try to issue NODEFAULT Command at the Save Event if condition returns is .F.

IF !RecordSave
NODEFAULT
ENDIF
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."
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform