B
Bernie Yaeger
I'm building a custom textbox for numbers only (actually two of them - one
for integers and one that allows currency entries, but let's discuss the
integer only control). I'm having a problem knowing where in the current
string the user is trying to enter '-' (ascii 45). I have been able to
ensure it can't be entered twice, but I currenty only allow it at all when
the string length is zero. However, if the user enters '345' and now wants
to change it to '-345' I don't allow it, because I don't know how to
determine if the entry is 34-5 or 3-45 or 345- or -345. In what event and
in what manner can I solve this?
Thanks for any help.
Bernie Yaeger
for integers and one that allows currency entries, but let's discuss the
integer only control). I'm having a problem knowing where in the current
string the user is trying to enter '-' (ascii 45). I have been able to
ensure it can't be entered twice, but I currenty only allow it at all when
the string length is zero. However, if the user enters '345' and now wants
to change it to '-345' I don't allow it, because I don't know how to
determine if the entry is 34-5 or 3-45 or 345- or -345. In what event and
in what manner can I solve this?
Thanks for any help.
Bernie Yaeger