Re: How to reduce illegal characters in a text field

2008-05-29 Thread Adam Wozniak
Richard Bram wrote: > Are there any ASCII values that are illegal to insert into a text field > on the device (other than zero, of course)? I remember on the old > Macintosh simulator, you would get a crash if you put something like > a 0x07 or other low number into a field, but I can't remember i

Re: How to reduce illegal characters in a text field

2008-05-29 Thread Richard Hartman
More flexible than passing some sort of regular expression would be to pass a callback to a validation function. Then you can write any code you want to validate ... i before e except after c and all that ... much more flexible than regular expressions. -- -Richard M. Hartman [EMAIL PROTECTED] 1

Re: How to reduce illegal characters in a text field

2008-05-29 Thread Adam Wozniak
Richard Hartman wrote: > More flexible than passing some sort of regular expression > would be to pass a callback to a validation function. Then you > can write any code you want to validate ... i before e except after > c and all that ... much more flexible than regular expressions. I'd argue w

Re: How to reduce illegal characters in a text field

2000-06-16 Thread Peter Epstein
Since your application is in charge of the event loop, it can decide not to pass key down events on to the field if it deems them inappropriate at this point (based on the current state of the field, as determined through the public field APIs). However, be warned that the keyboard dialog works

Re: How to reduce illegal characters in a text field

2000-06-16 Thread Adam Wozniak
Richard Hartman wrote: > More flexible than passing some sort of regular expression > would be to pass a callback to a validation function. Then you > can write any code you want to validate ... i before e except after > c and all that ... much more flexible than regular expressions. I'd argue

Re: How to reduce illegal characters in a text field

2000-06-15 Thread Richard Hartman
More flexible than passing some sort of regular expression would be to pass a callback to a validation function. Then you can write any code you want to validate ... i before e except after c and all that ... much more flexible than regular expressions. -- -Richard M. Hartman [EMAIL PROTECTED]

Re: How to reduce illegal characters in a text field

2000-06-15 Thread Adam Wozniak
Richard Bram wrote: > Are there any ASCII values that are illegal to insert into a text field > on the device (other than zero, of course)? I remember on the old > Macintosh simulator, you would get a crash if you put something like > a 0x07 or other low number into a field, but I can't remember

Re: How to reduce illegal characters in a text field

2000-06-15 Thread Ken Krugler
At 12:00am -0700 00-06-15, Palm Developer Forum digest wrote: >Subject: How to reduce illegal characters in a text field >From: Richard Bram <[EMAIL PROTECTED]> >Date: Wed, 14 Jun 2000 07:34:26 -0500 >X-Message-Number: 11 > >Are there any ASCII values that are illegal to

How to reduce illegal characters in a text field

2000-06-14 Thread Richard Bram
Are there any ASCII values that are illegal to insert into a text field on the device (other than zero, of course)? I remember on the old Macintosh simulator, you would get a crash if you put something like a 0x07 or other low number into a field, but I can't remember if any low numbers will crash