Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Where to put the code?
Message
 
To
21/08/1998 20:08:40
General information
Forum:
Visual FoxPro
Category:
Classes - VCX
Miscellaneous
Thread ID:
00128883
Message ID:
00128980
Views:
21
>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
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform