CLANBS |
clanbs returns the number of variables existing in a class or the number of symbols allocated to a variable class.
clanbs(< class | num_exp >, symb_exp)
|
Element |
Description |
Restrictions |
|
class |
Describes the abbreviation of a class |
None |
|
num_exp |
Numeric expression that describes a class |
num_exp >= 0 |
|
symb_exp |
Numeric expression that determines whether you are searching for the number of symbols that exist in a class or allocated to a class. |
symb_exp >= 1 |
# Number of variables of the [V] classInfbox num$(clanbs([V], 1))
clanbs returns the number of variables defined in a class or the number of symbols allocated to a class, the value of the second parameter of the function is equal to one (1) in the first case and two (2) in the second. The values returned are identical for the classes that cannot be modified (screens and files) and distinct for the other classes (the number of allocated symbols is greater than or equal to the number of existing variables).
The class is given in parameters by its abbreviation or its internal number. The internal number (used by Adonix) corresponds to the line number in the list of variable classes displayed in the debugger, and starts with one (1). No error is returned when a parameter does not correspond to a single accessible class, since clanbs 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_symb < 0 or exp_num < 0 |
CLALEV - CLASIZ - CLANAM - CLAVAR
|
|