Sorry. I should have said the form 'ON CLOSE EEP'



-----Original Message-----
 From: "Mike Byerley" <[email protected]>
 To: [email protected] (RBASE-L Mailing List)
 Date: Fri, 2 Mar 2012 12:00:39 -0500
 Subject: [RBASE-L] - Re: Saving a variable edit


Per my first ans to Karen, when you press '[esc]' while in the edit control,
 the onExit eep never fires because you never left the control..

 ----- Original Message -----
 From: "jan johansen" <[email protected]>
 To: "RBASE-L Mailing List" <[email protected]>
 Sent: Friday, March 02, 2012 11:51 AM
 Subject: [RBASE-L] - Re: Saving a variable edit


 : Karen,
 :
 :
 : What I have done in the past is use to assign a componentid to that
 variable
 : edit.
 :
 : Assuming a variable edit called vbeforeedit.
 :
 : Then in the on-exit eep do a
 :
 : GETPROPERTY yourcompid TEXTVALUE vafteredit
 :
 : IF vafteredit <> .vbeforeedit THEN
 :
 :   SET VAR vbeforeedit = .vafteredit
 :
 : ENDIF
 :
 :
 : PROPERTY TABLE IntCmd 'POST'
 :
 :
 : Jan
 :
 : -----Original Message-----
 : From: [email protected]
 : To: [email protected] (RBASE-L Mailing List)
 : Date: Fri, 2 Mar 2012 11:18:01 -0500 (EST)
 : Subject: [RBASE-L] - Re: Saving a variable edit
 :
 :
 : Mike:  You're absolutely right.  In most cases I WOULD disable the [esc]
 and
 : make them press a button.  This is one of those heads-up kind of DOS forms
 : that I'm converting.  Trying real hard to mimic the way DOS does this
 (hey,
 : didn't I recently start a conversation on this??).    I'll show her what I
 : did as a workaround and tell her that I can locate a button right after
 the
 : field that she can press a [spacebar] to select, and see which she
 prefers.
 :
 :
 :
 : It still seems weird to me that the software thinks I've never "left" the
 : edit box.  I did enter the edit box, I pressed a key to get out of the
 edit
 : box...
 :
 :
 :
 : Karen
 :
 :
 :
 :
 :
 :
 : -----Original Message-----
 : From: Mike Byerley <[email protected]>
 : To: RBASE-L Mailing List <[email protected]>
 : Sent: Fri, Mar 2, 2012 10:10 am
 : Subject: [RBASE-L] - Re: Saving a variable edit
 :
 :
 : The onExit eep never fires because you never left the edit box.
 :
 : Can't you suppress the '[esc]' key for the form and make them press a
 button
 :
 : to exit.  It should work ok then.
 :
 :
 :
 :
 : ----- Original Message -----
 : From: <[email protected]>
 : To: "RBASE-L Mailing List" <[email protected]>
 : Sent: Friday, March 02, 2012 9:29 AM
 : Subject: [RBASE-L] - Saving a variable edit
 :
 :
 :
 : What I'm doing:  I have a form based on a dummy table, nothing but
 : variables.  If the user presses [esc] while in the last variable edit it
 : does not save the value.
 :
 : I had a solution to this problem saved in my note document, but it doesn't
 : work now that I need to use it.  The exact posting from this list said:
 :
 : I put PROPERTY RBASE_FORM DONTSHOWSAVEDIALOG 'TRUE' in a test form
 : and put the following in the onExit EEP and it saves the data.
 : IF (LASTKEY(0)) = '[esc]' THEN
 :     PROPERTY TABLE IntCmd 'POST'
 : ENDIF
 : RETURN
 :
 : I replaced the tablename with my own table but it doesn't work.  It seems
 : that pressing [esc] from the last field doesn't even evaluate the field's
 : "on exit" eep (I put a pause message in there it never shows).    Has
 anyone
 : else done this successfully?
 :
 : Karen

Reply via email to