CLANBS

Contents


clanbs returns the number of variables existing in a class or the number of symbols allocated to a variable class.

 

Syntax

   clanbs(< class | num_exp >, symb_exp)

 

Parameters

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

 

Examples

   # Number of variables of the [V] class
    Infbox num$(clanbs([V], 1))

 

Description and Comments

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.

 

Associated Errors

Error

Description

ERCLAS ( 7)

Class does not exist

ERDOM (50)

exp_symb < 0 or exp_num < 0

 

Associated Keywords

CLALEV - CLASIZ - CLANAM - CLAVAR


CONTENTS


Copyright © Sage 1999 - 2007