![]() |
| The AccuTerm forum has moved. Go to community.rocketsoftware.com to register for the new Rocket forum. |
|
Post Reply
|
| Author | |
slove
Newbie
Joined: March 01 2004 Location: United States Status: Offline Points: 8 |
Post Options
Thanks(0)
Quote Reply
Topic: input length checkingPosted: March 27 2004 at 5:30am |
|
does anyone have a good method of checking input lenght while in the gui form - i know i can use the validate event and check after input - i want to be able to limit input or show maximum length on form
|
|
![]() |
|
Deech
Moderator Group
Moderator -- GUI Development Joined: December 15 2003 Status: Offline Points: 177 |
Post Options
Thanks(0)
Quote Reply
Posted: March 27 2004 at 3:32pm |
|
Slove,
Unfortunately, there is no way to length-limit text boxes in the GUI environment before or without using the Validate or Deactivate events. You could set the width of the field to a point where it starts scrolling when the user gets to the desired number of characters. This would give them a visual clue that they have entered too many characters. When I have length validated fields on a form, I set the field width to accomodate maximum input size before scrolling and use the pop-up help messages to tell the user input is limited to X characters. I then use the validate or deactivate events to check if their input exceeds the maximum number of charcters. If the value they entered is too long, I call ATGUIACTIVATE to send them back to the field they just tried to leave. This is a very frequently requested validation, that the developers of Accuterm are aware of. Hopefully it will be added to the appropriate field types in a future release of the Accuterm GUI environment. Hope that helps, Deech |
|
|
Accuterm GUI--Changing the Face of MV Development!!
|
|
![]() |
|
slove
Newbie
Joined: March 01 2004 Location: United States Status: Offline Points: 8 |
Post Options
Thanks(0)
Quote Reply
Posted: March 29 2004 at 2:26am |
|
thanks, i will limit the input box size and add the max lenght to the pop-up help - and wait for the next release with input limiting
Steve |
|
![]() |
|
pcmjoe
Beta Tester
Joined: February 05 2004 Location: United States Status: Offline Points: 32 |
Post Options
Thanks(0)
Quote Reply
Posted: March 29 2004 at 3:36am |
|
I have also run into this issue and Pete has said that he will be adding a length property.
Deech says however: 'I set the field width to accomodate maximum input size before scrolling ' Since the width of each letter varies, it's difficult to estimate the width to assign an entry field. Or are you using a fixed length font? |
|
![]() |
|
Deech
Moderator Group
Moderator -- GUI Development Joined: December 15 2003 Status: Offline Points: 177 |
Post Options
Thanks(0)
Quote Reply
Posted: March 29 2004 at 11:38pm |
|
pcmjoe,
Yeah, I concede the point, to get it to work perfectly, you would have to use a mono-space font like Courier New or some other font where all the characters are the same size. Even if you don't change the font, however it does give the user some idea of how much they can type in. |
|
|
Accuterm GUI--Changing the Face of MV Development!!
|
|
![]() |
|
Post Reply
|
|
|
Tweet
|
| Forum Jump | Forum Permissions ![]() You cannot post new topics in this forum You cannot reply to topics in this forum You cannot delete your posts in this forum You cannot edit your posts in this forum You cannot create polls in this forum You cannot vote in polls in this forum |