NET/MASTER Network Control Language (NCL) Programmer's Guide
Defining Field Characters in a Panel Description File
Working With Panels
14–42 106160 Tandem Computers Incorporated
4. Observe the results, as shown in the following screen:
DATA Left variable left field null
DATA Right variable left field null
DATA Center variable left field null
DATA[[[[[ Left variable left field pad[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[
]]]]]DATA Right variable left field pad]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]
..DATA... Center variable left field pad.......................................
DATA Left variable right field null
DATA Right variable right field null
DATA Centre variable right field null
[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[DATA[[[[[ Left variable right field pad
]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]DATA Right variable right field pad
........................................DATA... Centre variable right field pad
DATA Left variable centre field null
DATA Right variable centre field null
DATA Centre variable centre field null
[[[[[[[[[[[[[[[[[[[DATA[[[[[ Left variable centre field pad[[[[[[[[[[[[[[[[[[[[
]]]]]]]]]]]]]]]]]]]]]]]]DATA Right variable centre field pad]]]]]]]]]]]]]]]]]]]
....................DATA... Centre variable centre field pad...................
Specifying Input Padding
and Justification
You can specify padding and justification options in input fields by using the PAD and
JUST options of the #FLD statement.
If an input field is initialized with data during the display of a panel, data is always
aligned as described earlier in this section with a single exception. The exception is
that JUST=CENTRE is treated as JUST=LEFT. When Panel Services processes input
from the screen, input fields defined using the PAD and JUST operands are processed
using the following rules:
1. Trailing blanks and pad characters are stripped off unless the pad character is a
digit.
2. If JUST=RIGHT is specified for the field, leading blanks and pad characters are
stripped off, including the case in which the pad character is a digit.
3. If JUST=ASIS is specified for the field, trailing blanks and pad characters are
stripped off, but leading blanks and pad characters remain intact.