Field Width

nate100

Member
I have a database field that is 66 characters long.
When I display it on the screen though, I like to show it as a width of 10 characters "x(10)" but give the user the ability to type upto 66 characters.

Thanks and advance
 
Use VIEW-AS FILL-IN.

Code:
DEFINE VARIABLE ctest AS CHARACTER  NO-UNDO.
DISPLAY ctest FORM "x(66)" VIEW-AS FILL-IN SIZE 10 BY 1 WITH FRAME f1.
UPDATE ctest WITH FRAME f1.
MESSAGE ctest VIEW-AS ALERT-BOX INFO BUTTONS OK.
 
Back
Top