Is there a method lurking about to validate input data in a text box to be
numeric or are you required on the PPC to loop through the string a
character at a time to perform the validation?

--
-- Thom Little -- www.tlanet.net -- Thom Little Associates, Ltd.
--

Re: Input Validation by M

M
Mon Jun 20 23:30:16 CDT 2005

If you're using MFC, you may find the dialog data validation functions
(DDV_MinMaxByte, DDV_MinMaxInt, etc) useful.



"Thom Little" <thom@tlanet.net> wrote in message
news:OPbhCvgdFHA.3616@TK2MSFTNGP09.phx.gbl...
> Is there a method lurking about to validate input data in a text box to be
> numeric or are you required on the PPC to loop through the string a
> character at a time to perform the validation?
>
> --
> -- Thom Little -- www.tlanet.net -- Thom Little Associates, Ltd.
> --
>
>
>



Re: Input Validation by Thom

Thom
Tue Jun 21 00:35:07 CDT 2005

Unfortunately my need is for validating the string in a text box in a form
Thank you for the try.

It is hard to believe that it is that unique a need.

--
-- Thom Little -- www.tlanet.net -- Thom Little Associates, Ltd.
--

"M" <a@b.com> wrote in message
news:%23BlzxnhdFHA.1040@TK2MSFTNGP10.phx.gbl...
> If you're using MFC, you may find the dialog data validation functions
> (DDV_MinMaxByte, DDV_MinMaxInt, etc) useful.



Re: Input Validation by r_z_aret

r_z_aret
Tue Jun 21 15:43:34 CDT 2005

On Tue, 21 Jun 2005 01:35:07 -0400, "Thom Little" <thom@tlanet.net>
wrote:

>Unfortunately my need is for validating the string in a text box in a form
>Thank you for the try.
>
>It is hard to believe that it is that unique a need.

The need is not all that unique. But Microsoft has provided no
"standard" method so we all write our own. I've come across other
"features" that are needed more often, are more painful to implement,
and are not available from Microsoft. (e.g. date conversion)

See a current thread called "Editbox" in
microsoft.public.win32.programmer.ui


>
>--
>-- Thom Little -- www.tlanet.net -- Thom Little Associates, Ltd.

-----------------------------------------
To reply to me, remove the underscores (_) from my email address (and please indicate which newsgroup and message).

Robert E. Zaret, eMVP
PenFact, Inc.
500 Harrison Ave., Suite 3R
Boston, MA 02118
www.penfact.com

Re: Input Validation by Thom

Thom
Thu Jun 23 16:18:40 CDT 2005

I did is with a Try-Catch and just let the errors happen. Exception
handling is way much faster on the PPC then on the PC.

Is everyone addressing this issue on the PPC by "unlearning" the axiom to
not use Try-Catch as the standard method for simple input validation?

--
-- Thom Little -- www.tlanet.net -- Thom Little Associates, Ltd.
--

<r_z_aret@pen_fact.com> wrote in message
news:jdugb1latkrv4pmvb0f71fl7mqrdp6uo9b@4ax.com...
> On Tue, 21 Jun 2005 01:35:07 -0400, "Thom Little" <thom@tlanet.net>
> wrote:
>
>>Unfortunately my need is for validating the string in a text box in a form
>>Thank you for the try.
>>
>>It is hard to believe that it is that unique a need.
>
> The need is not all that unique. But Microsoft has provided no
> "standard" method so we all write our own. I've come across other
> "features" that are needed more often, are more painful to implement,
> and are not available from Microsoft. (e.g. date conversion)
>
> See a current thread called "Editbox" in
> microsoft.public.win32.programmer.ui