View previous topic :: View next topic
|
Author |
Message |
sherkhan
New User
Joined: 26 Jun 2005 Posts: 1
|
|
|
|
Hi,
i wanted to know the method of getting the length of a field entered by the user on an online screen.
For eg.
i want the user to enter 6 digits mandatory in the field. I have done the validation for numerics..but i am unable to force the user to enter 6 digits...
Can we use the lenght function on the input field?
any help will be greatly appreciated.
Thanks |
|
Back to top |
|
|
PLPro
New User
Joined: 19 Jul 2005 Posts: 2
|
|
|
|
DCL IN_STR CHAR(6); /* This will limit the length to NO MORE than 6 chars */
[...your code here...]
IF INDEX(IN_STR, " ")> 0 THEN DO;
/* If there's a space, there's definitely a problem. Enter code to process */
END;
/* Enter code for other validation steps */ |
|
Back to top |
|
|
|