 |
BorlandTalk.com Borland discussion newsgroups
|
| View previous topic :: View next topic |
| Author |
Message |
Lauchlan M Guest
|
Posted: Wed Oct 29, 2003 11:53 pm Post subject: SpinEdit control (samples tab) |
|
|
Hi.
It seems that in this control you can only enter certain characters, but
they might produce a non-integer. For example you could enter '+-3.2' but no
a-z or A-Z characters.
When you enter invalid text and click the up or down spin buttons, it throws
an error. If I want to catch explicitly this error on this component and
handle it (eg show a message that they need to enter a valid format), how do
I do this?
Thanks!
Lauchlan M
|
|
| Back to top |
|
 |
Chris Burrows Guest
|
Posted: Thu Oct 30, 2003 12:24 am Post subject: Re: SpinEdit control (samples tab) |
|
|
Lauchlan M wrote:
| Quote: | Hi.
It seems that in this control you can only enter certain characters,
but they might produce a non-integer. For example you could enter
'+-3.2' but no a-z or A-Z characters.
When you enter invalid text and click the up or down spin buttons, it
throws an error. If I want to catch explicitly this error on this
component and handle it (eg show a message that they need to enter a
valid format), how do I do this?
|
If you are only interested in decimal integers, see if the more standard
up/down control is easier for you to use. When it is associated with a TEdit
it automatically behaves in a similar way to the SpinEdit.
Chris Burrows
CFB Software
http://www.cfbsoftware.com
|
|
| Back to top |
|
 |
|
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum
|
|