I believe this was the theory behind Form Properties>Dynamic Caption> Uncheck all Caption buttons and Checking the 'Disable [x] Caption button, [Alt F4] and [Esc] key combinations' so you could put your own Command button or Speed Button with your own Exit Handling Steps in that buttons onClick EEP.....
----- Original Message ----- From: <[EMAIL PROTECTED]> To: "RBG7-L Mailing List" <[EMAIL PROTECTED]> Sent: Monday, August 23, 2004 10:58 AM Subject: [RBG7-L] - Re: On Exit EEP problem > Jim: > > If I understand you correctly, this is not a bug > and is the way RBase has always worked. If you exit the form from a field > (by either an [esc] or [F8] key, clicking on the 'x', whatever), the eep will > fire, > but it cannot return you back into the field. You have told RBase that you're > exiting the form, and no eep can put you 'back" into the field if you've told > it you're leaving the form. I've always run into this problem since eeps were > first introduced -- you cannot validate data and return back to the form if > you press [esc] from that field. So what I do in the eep is to assign a value > to an "error" variable if there's a data problem, check for this variable in > the > calling program and bring up the form again. > > Karen > > > > > Hello All: > > Can someone verify this bug -OR- is this a bug ?? > > Version 7.1.76 win > > > > If you have a form used for ADD (or enter), and you wish to do the error > > checking at the field level (which I prefer), it appears that you cannot > > have an eep on the last field, and have it validate correctly. If this is > > something that was reported earlier, and I missed, please let me know. > > > > Very simple to replicate. > > Create a form using comcomp (or any database), and only have two > > fields....say company (field 1) and custstate (field2). > > Then within the form, create a variable such as vstate text = custstate. > > On the custstate field, use an on exit eep (to insure that the field is not > > null), by inserting the following code: > > > > IF VSTATE IS NULL THEN > > PAUSE 2 USING 'STATE IS MISSING' > > SKIP TO CUSTSTATE > > RETURN > > ENDIF > > RETURN > > > > Then, save the form. > > Next, run the form and leave the custstate field blank. > > The record gets added (with the blank state field), and THEN the field gets > > checked for null, and you get the error message > > What am I missing to make this work ? > > > > Jim. > > > > >
