0 pts.
 rpg400
How to validate a alphanumeric field that is of length 20 but should not allow values less than 12?

Software/Hardware used:
ASKED: November 25, 2008  1:17 PM
UPDATED: November 25, 2008  1:53 PM

Answer Wiki:
Hi, A real "quick and dirty" method is to move (not move left) your 20 long field into a 8 long field and check if the 8 long field is empty. If it's empty, then your field is too short. Alternatively you should be able to check if the substring from 13 - 20 is empty. This is a more professional and easier to read way of checking. Regards, Martin Gilbert.
Last Wiki Answer Submitted:  November 25, 2008  1:24 pm  by  Gilly400   23,625 pts.
All Answer Wiki Contributors:  Gilly400   23,625 pts.
To see all answers submitted to the Answer Wiki: View Answer History.


Discuss This Question:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _


 

sorry can you suggest the same using ile?any syntax available?

 265 pts.

 

if %len(%trim( field20)) < 12

 44,220 pts.