Clasiz
clasiz
allows you to know the size used by a class (in bytes).
clasiz(CLASS_DESCRIPTION,OPTION)clasiz(NUMERIC_EXPRESSION,OPTION)
CLASS_DESCRIPTION
is a class description with the [ABBR]
syntax, where ABBR
is the abbreviation of a class.OPTION
is an integer expression returning 1 or 2.NUMERIC_EXPRESSION
refers to the slot number for the class. This can be seen in the debugger, but should be considered internal. # Check the size used by the local variable classSIZE1=clasiz([L],1) : # The size used by [L] variablesSIZE2=clasiz([L],2) : # The size currently allocated for [L] variables
clasiz
allows you to return the size used by a class available in the execution context (for example, table, local class, or global class). If the class is not available, the return is 0.
The second argument can either be 1 or 2:
* If 1, the size currently used by the variables in the class is returned.
* If 2, the size allocated to the class is returned.
The result of the function is Integer.
Error | Description |
---|---|
50 | The numeric argument is negative. |
clalev, clanam, clanbs, clavar.