Rocket Software Homepage
Forum Home Forum Home > AccuTerm Knowledge Base (read only) > GUI Development
  New Posts New Posts RSS Feed - input length checking
  FAQ FAQ  Forum Search   Register Register  Login Login

The AccuTerm forum has moved. Go to community.rocketsoftware.com to register for the new Rocket forum.

Forum Lockedinput length checking

 Post Reply Post Reply
Author
Message
slove View Drop Down
Newbie
Newbie


Joined: March 01 2004
Location: United States
Status: Offline
Points: 8
Post Options Post Options   Thanks (0) Thanks(0)   Quote slove Quote  Post ReplyReply Direct Link To This Post Topic: input length checking
    Posted: 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
Back to Top
Deech View Drop Down
Moderator Group
Moderator Group

Moderator -- GUI Development

Joined: December 15 2003
Status: Offline
Points: 177
Post Options Post Options   Thanks (0) Thanks(0)   Quote Deech Quote  Post ReplyReply Direct Link To This Post 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!!
Back to Top
slove View Drop Down
Newbie
Newbie


Joined: March 01 2004
Location: United States
Status: Offline
Points: 8
Post Options Post Options   Thanks (0) Thanks(0)   Quote slove Quote  Post ReplyReply Direct Link To This Post 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
Back to Top
pcmjoe View Drop Down
Beta Tester
Beta Tester


Joined: February 05 2004
Location: United States
Status: Offline
Points: 32
Post Options Post Options   Thanks (0) Thanks(0)   Quote pcmjoe Quote  Post ReplyReply Direct Link To This Post 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?
Back to Top
Deech View Drop Down
Moderator Group
Moderator Group

Moderator -- GUI Development

Joined: December 15 2003
Status: Offline
Points: 177
Post Options Post Options   Thanks (0) Thanks(0)   Quote Deech Quote  Post ReplyReply Direct Link To This Post 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!!
Back to Top
 Post Reply Post Reply
  Share Topic   

Forum Jump Forum Permissions View Drop Down

Forum Software by Web Wiz Forums® version 12.03
Copyright ©2001-2019 Web Wiz Ltd.