On Thursday 20 November 2008 03:09:58 pm johnf wrote:
> > Thanks. I think instead we want to catch decimal.InvalidOperation as well
> > as ValueError, which also catches changing the value to "dd", for
> > example.
> >
> > Paul
>
> When I test dTextBox and type in the last box I get no change - of course
> after adding a space or two.  Is that what you want to occur??? You are
> only catching the error and doing nothing.  So the user does not realize
> what has happened.  If I paste something into the box that contains a
> leadng space it does nothing.   Why not just strip it and there would be no
> reason to worry about errors (at least for spaces at the start or end of
> the value) or any lack of any acknowledgement for the user.   We need
> something don't you think?
>
> I realize that we can't catch all the invalid inputs into a decimal ctrl
> but I think putting in a leading space should not raise an error.

Sorry I posted before your most recent post.

-- 
John Fabiani


_______________________________________________
Post Messages to: [email protected]
Subscription Maintenance: http://leafe.com/mailman/listinfo/dabo-dev
Searchable Archives: http://leafe.com/archives/search/dabo-dev
This message: http://leafe.com/archives/byMID/[EMAIL PROTECTED]

Reply via email to