Return to the DDS Tips
Auto word wrap text entry
Have you considered using the CNTFLD (Continued-Entry Field) keyword?
If, for example,
you want to limit your users to keying five 30-character lines, you could use the
following spec:
A DSTEXT 150 B 17 2CNTFLD(030) WRDWRAPUsing this spec, the 150-character field will be broken into 5 lines of 30characters each. If you "insert" something on the top line, the following lines will move as well. You can also use the WRDWRAP keyword, as shown above, but understand that when a word wraps, you are basically inserting blank characters at the end of the line.
Note that the CNTFLD & WRDWRAP keywords require that the display device is attached to a controller that supports an enhanced interface for nonprogrammable work stations, otherwise the keywords will be ignored.
[report a broken link by clicking here]