MASKNBF |
masknbf returns the number of fields defined in a screen (if it is open).
masknbf(<class | num_exp>)
|
Element |
Description |
Restrictions |
|
class |
Description of a screen |
The class must exist. |
|
num_exp |
Numeric expression that describes a screen |
num_exp >= 0 |
# How many fields does the Customer Header screen (BPC0) contain? BPC0 ScreenInfbox num$(masknbf([BPC0]))
masknbf returns the number of fields defined in the screen that
corresponds to the function's parameter. The screen can either be described by
its abbreviation or a number. In the case of an abbreviation, it must be open.
The internal number (used by
Adonix) corresponds to the line number in the list of open screens displayed in
the debugger, and starts with one (1). No error is returned when a numeric
parameter does not correspond to a single open screen, since the function
returns the value zero (0).
The result of the function is of the Integer type.
|
Error |
Description |
|
ERCLAS ( 7) |
Class does not exist |
|
ERDOM (50) |
exp_num < 0. |
MASK - MASKABR - MASKNAM - MASKCOU
|
|