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]
186,000 mi/sec: not just a good idea, it's the LAW!
Adam Wozniak wrote in message <[EMAIL PROTECTED]>...
>
>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 if any
>> low numbers will crash the device?
>
>Probably off topic, but it would be nice to see this in some future
>version of PalmOS...
>
>I worked in one GUI development environment which allowed you to specify
>general regular expressions in the "constructor" when you created
>a text field. The regular expression was used to do initial data
>validation as the user entered text. For example, a text field
>designed to enter a monetary amount (ie, $5.39) might have a regular
>expression associated with it like "(\$)?[0-9]*\.[0-9]{2}" which
>was used to do initial validation of the data. If the value in the field
>didn't fit the regex, the field would have red highlight around it and
>the OK button in the form would be greyed out.
>
>It was nice to have, and saved us a lot of headaches and data validation
>code.
>
>--
>Adam Wozniak Senior Software Design Engineer
> Surveyor Corporation
>[EMAIL PROTECTED] 4548 Broad Street
>[EMAIL PROTECTED] San Luis Obispo, CA 93401
>
>
>
>
--
For information on using the ACCESS Developer Forums, or to unsubscribe, please
see http://www.access-company.com/developers/forums/