Clanbs

clanbs allows you to know the number of variables used by a class.

Syntax

 clanbs(CLASS_DESCRIPTION,OPTION)clanbs(NUMERIC_EXPRESSION,OPTION)

Examples

 # Check the number of variables used by the local variable classNUMBER1=clanbs([L],1) : # The number of variables currently present in [L] variable class.NUMBER2=clanbs([L],2) : # The number of variables slots currently allocated for [L] variables

Description

clanbs allows you to return the number of variable slots used by a class available in the execution context (for example, table, local class, or global class). If the class is not available an errn=10 (type not compatible) is returned.

The second argument can either be 1 or 2:
* If 1, the number of variables currently used for variables in the class is returned.
* If 2, the size allocated to variable entries for the class is returned.

The result of the function is Integer.

Associated errors

ErrorDescription
10Type incompatibility
50The numeric argument is negative.

See also

clalev, clanam, clasiz, clavar, errn, onerrgo.