RE: TZF - not only a Topaz Problem
"Samuel J. Godfrey" <[email protected]> Fri, 8 Aug 2003 07:57:54 -0400
| Newsgroups | gmane.comp.lang.delphi.topaz |
|---|---|
| Message-ID | <[email protected]> |
Pierre: You might want to check out this article on Borland's website about controlling key entry: http://bdn.borland.com/article/0,1410,28452,00.html You can get creative with the ideas they present and ensure that the user enters only negative numbers or only enters positive numbers. I don't know about mixing it with a mask. Maybe on entry set the mask to nothing and then reset the mask on exit. Something will get it to work though. And, that is why we are programmers right? Have an idea and make it work. Hope this was helpful. S. Jason Godfrey > Hello > > Nice hot time to work at a computer. I do it, because I want to solve a > problem till to the end of my holydays: > > I have a maskedit-component on the form with a mask, maybe 0.00. > > I want to have the possibility to escape the maskedit component by using an > onkeypress event I ask the key > if key=CHR(27) then ...... > but when I escape with a wrong input in the maskedit-component, I get a > EDBEditError. > But where/how can I catch the Error with a try ... except solution > > Or generally how can I prevent to exit a component with another button , > when it has not a correct input > > Can you help me > > Pierre Wittwer > Stansstad > Switzerland > > > > > > --^---------------------------------------------------------------- This email was sent to: [email protected] EASY UNSUBSCRIBE click here: http://topica.com/u/?clvXPN.a5jSEu.c2pnb2Rm Or send an email to: [email protected] TOPICA - Start your own email discussion group. FREE! http://www.topica.com/partner/tag02/create/index2.html --^---------------------------------------------------------------- --^---------------------------------------------------------------- This email was sent to: [email protected] EASY UNSUBSCRIBE click here: http://topica.com/u/?clvXPN.a5kvff.Z2NsZHQt Or send an email to: [email protected] TOPICA - Start your own email discussion group. FREE! http://www.topica.com/partner/tag02/create/index2.html --^----------------------------------------------------------------