Thanks, Ray, for the info on @Save.
Now, onto my next question:
I've read that the "STOP" command is not recommended, but I'm not sure if there's another way to do what I want.
I've made "SAVE" and "SAVE - EXIT" buttons for my form (still to come: "SAVE - CONTINUE"). In both cases I want to check to be sure that elements CODE and COMPANY are not blank. If that's the case then I want to allow saving. However, if either is blank I want to disallow saving, alert the user, and put him where he belongs to make the correction. Here's what I've got so far:
/* Saves the record and then Exits */
If @IsBlank(Code)
{
NotifyForm(1)
@MsgBox("Customer Code has not been assigned.","Please click ASSIGN CODE.","")
STOP
}
If @IsBlank(Company)
{
NotifyForm(1)
@MsgBox("Customer Name cannot be blank.","","")
ThrowFocus(Company)
STOP
}
Else FormCommit("")
@Exit
The "SAVE" button is exactly the same except for @Exit at the end.
Is there a better way to do this?