bdfgsbw
0 pts. | Jun 7 2005 4:30PM GMT
You can also use CHECK(RB): Right-adjust, blank-fill. The difference is that CHECK(RB) will put blanks before the number when the user hits field exit. CHECK(RZ) will put zeros before the number when the user hits field exit. Either keyword will work even if your field is defined as numeric.
Sholmbe
40 pts. | Feb 26 2008 6:44PM GMT
Neither CHECK(RZ) nor CHECK(RB) will prevent a user from Tabbing out of a field.
Per IBM:
The following list shows programming considerations for CHECK(RB) and CHECK(RZ):
- You activate right-alignment only by pressing the Field Exit, the Field+, or the Field- key. If you use the cursor movement keys to exit from a right-aligned field, the field is not right-aligned; it is left as is.
- Right-aligned fields longer than 15 character positions slow keyboard entries.
- The Dup key fills a right-aligned field from the cursor location to the end of the field with the duplication character, but the field is not right-aligned.
- You cannot specify the CHECK(RB) or CHECK(RZ) keyword on a field containing the WRDWRAP keyword.
TomLiotta
8025 pts. | Oct 26 2009 3:55AM GMT
Although users may use cursor movement keys to exit a field, the value that is left in the field on screen provides the user with visual evidence of a wrong value. Field-exit at least sets a clean value, and it’s visible. You will never prevent a user from entering wrong characters.
Note that the OP hasn’t shown the field DDS yet.
Tom






