Re: Validate user input
Re: Validate user input
- Subject: Re: Validate user input
- From: Michelle Steiner <email@hidden>
- Date: Tue, 6 Nov 2001 12:09:18 -0700
On 11/6/01 11:48 AM, Allen Watson <email@hidden> wrote:
>
Rather than that ugly "offset of" construct, I would use:
>
>
if (testchar is not in validchars) then
Yes. I had forgotten about that construct.
>
Also, it might be desirable to add a "return" after the display dialog of
>
the invalid character, unless you want to handle a separate dialog for every
>
incorrect character.
It's a tossup; trap it all on one running, or have the person enter
multiple times, not knowing that other characters are also invalid.
Maybe it might be better to construct a list of invalid characters and
present one dialog containing all of them.
--Michelle
----------------------------------------------------------------------
| Michelle Steiner | We're not human beings having a spiritual |
| | experience. We're spiritual beings |
| email@hidden | having a human experience. |
----------------------------------------------------------------------