MASKNBF

Contents


masknbf returns the number of fields defined in a screen (if it is open).

 

Syntax

   masknbf(<class | num_exp>)

 

Parameters

Element

Description

Restrictions

class

Description of a screen

The class must exist.

num_exp

Numeric expression that describes a screen

num_exp >= 0

 

Examples

   # How many fields does the Customer Header screen (BPC0) contain?
    BPC0 Screen
    Infbox num$(masknbf([BPC0]))

 

Description and Comments

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.

 

Associated Errors

Error

Description

ERCLAS ( 7)

Class does not exist

ERDOM (50)

exp_num < 0.

 

Associated Keywords

MASK - MASKABR - MASKNAM - MASKCOU


CONTENTS


Copyright © Sage 1999 - 2007