Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Where to put the code?
Message
 
À
21/08/1998 20:08:40
Information générale
Forum:
Visual FoxPro
Catégorie:
Classes - VCX
Divers
Thread ID:
00128883
Message ID:
00128980
Vues:
20
>WITH ThisForm
> IF .BeforeSave()
> IF .Save()
> .AfterSave()
> ENDIF
> ENDIF
>ENDWITH
>
>Only the Save has generic code. The BeforeSave and AfterSave can be customized for each form.

Craig,

Why not move the BeforeSave and AfterSave calls into the form's save method, then your button only has;
IF THISFORM.Save()
   * It got saved
ELSE
   * Something went wrong
ENDIF
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform