main logo
Subject: RE: Restrict Textbox Values?
Author: Cotton Mr Jerry P
Posted: 2003/10/31 10:43:00
 
View Entire Thread
New Search



> -----Original Message-----
> From: Greg Gum [mailto:ProFox (AT) Avasoft D.OT com]
> Sent: Friday, October 31, 2003 10:49 AM
> To: profox@leafe.com
> Subject: RE: Restrict Textbox Values?
>
>
> Yes, but your framework should take care of NOT updating the
> record if the
> user cancels.
>
> I go one step being using either the Valid or LostFocus, and
> have a method
> called ISDATAVALID that the framework calls when it really is ready to
> validate. If a user is canceling out of a form, then it
> never gets called
> so you don't get into the situation where the user wants to
> cancel, but the
> Valid() keeps putting the user back in a textbox. One way
> around this is
> checking for LastKey = 27 in your valid event, but I don't
> like having to
> remember to put that in every time.


That's why you put the LastKey code in your baseclass<G>


Jerry Cotton, MCP
2nd Marine Aircraft Wing
Management Training and Assistance Team
Cherry Point, NC 28533
(252)466-4854
mailto:cottonjp.ctr (AT) 2mawcp D.OT usmc.mil



--- StripMime Report -- processed MIME parts ---
multipart/alternative
text/plain (text body -- kept)
text/html
---


 
©2003 Cotton Mr Jerry P
<-- Prior Message New Search Next Message -->