Sign up on the Revelation Software website to have access to the most current content, and to be able to ask questions and get answers from the Revelation community

At 10 MAR 1999 03:06:24PM S Berger wrote:

This is a basic one. I have a wrapup program that is called from a form. One of the things that this program does is to validate that certain fields are not blank. What I want is for whenthe application finds that one of these fields is blank, it sets focus to the proper edit line and breaks out of the processing back to the form. I have no problem with the set focus part. I would have thought the part about returning control to the form would be accomplished with an END or a RETURN, but neither of these seem to work.

Thanks for any help

S


At 10 MAR 1999 03:14PM Scott Kearney wrote:

S,

I'm not entirely clear on what you mean by 'wrap-up'. I'm assuming you mean a set of procedures it runs through when the user attempts to close the window. If this is the case, and you're have a problem preventing your window from closing, try putting in a script on the CLOSE event that contains a conditional statement (based on the results of your own checking) that causes the script to return 0 (zero) if the window should not be closed, and 1 if it's ok to close it.

Let me know if I'm off-base and misinterpreted what you're trying to do.

-Scott Revelation


At 10 MAR 1999 04:34PM S. Berger wrote:

the wrap up is a series of procedures launched when the user attempts to save a record. Lets say I have a form that asks for lname, fname, age, and address. If the user enters a lname and then presses save, I want the program to check the other fields find that there is no fname set the focus to fname and abort the save and return to the form. Right now I can do the error checking, but the script keeps processing. I want to stop the script.

S


At 11 MAR 1999 11:04AM Scott Kearney wrote:

Oh, in that case, you should just have your script use some major flow-control. Use a premature RETURN to immediately abort the script, or (if necessary), the dreaded Goto statement.

-Scott

Revelation


At 11 MAR 1999 02:28PM Cameron Revelation wrote:

S Berger,

You can set the field as required (in the form designer) and change the IOOPTIONS property (in the CREATE event) to check required fields all at once on WRITE instead of on each during LOSTFOCUS.

Cameron Purdy

Revelation Software

View this thread on the forum...

  • third_party_content/community/commentary/forums_nonworks/78896c7479cb27ac85256730006e733d.txt
  • Last modified: 2023/12/28 07:40
  • by 127.0.0.1