CLAVAR

Contents


clavar returns the names of the variables defined in the classes of the current application.

 

Syntax

   clavar(< class | num_exp >, var_exp)

 

Parameters

Element

Description

Restrictions

class

Describes the abbreviation of a class

None

num_exp

Numeric expression that describes a class

num_exp >= 0

exp_var

Numeric expression that describes a variable

var_exp >= 1

 

Examples

   # List of variables of the [S] class
    For I = 1 To NBVAR
       Infbox clavar([S], I)
    Next

 

Description and Comments

clavar returns the names of the variables that exist in given classe. The function's first parameter describes a class by its abbreviation or internal number; and, the second parameter describes a variable by its internal number.

A class's internal number corresponds to the line number in the list of variable classes displayed in the debugger, and starts with one (1). The management of the variables' internal numbers is symetrical. No error is returned when a parameter does not correspond to a single accessible class, since clavar returns the empty string ("").

The result of the function is of the Char type.

 

Associated Errors

Error

Description

ERDOM (50)

exp_var < 0 or exp_num < 0.

 

Associated Keywords

CLALEV - CLASIZ - CLANAM - CLANBS


CONTENTS


Copyright © Sage 1999 - 2007