Resolved Error On Letter Only Fill-ins

Dave Reyes

New Member
I need my textboxes to not accept number or special characters but formatting my fill-ins/textboxes to "Allow Letters only" or "Allow Letters and Convert to Caps" gives me these errors:

** Character at position 4 must be a letter. (631)
** Data string ASD does not match format (629)
** The value input for txtLastname is not valid. (71)

Any help would be appreciated.
 

Osborne

Active Member
I came across something similar a few years back, and to solve had to do something like this to prevent errors if not all characters were entered for the FILL-IN:
Code:
ON LEAVE OF txtLastname IN FRAME frame1 DO:
   IF LENGTH(txtLastname:SCREEN-VALUE) <> 8 AND txtLastname:MODIFIED THEN
      txtLastname:MODIFIED = NO.
END.
 

Dave Reyes

New Member
I came across something similar a few years back, and to solve had to do something like this to prevent errors if not all characters were entered for the FILL-IN:
Code:
ON LEAVE OF txtLastname IN FRAME frame1 DO:
   IF LENGTH(txtLastname:SCREEN-VALUE) <> 8 AND txtLastname:MODIFIED THEN
      txtLastname:MODIFIED = NO.
END.

Worked like a charm. Thank you so much. :)
 
Top