CLALEV

Contents


clalev is used to establish whether or not a class of variables is accessible from the current application.

 

Syntax

   clalev( < class |exp_num > )

 

Parameters

Element

Description

Restrictions

class

Description of a class.

None.

exp_num

Numerical expression indicating a class.

exp_num >= 0

 

Examples

  # List of classes accessible from the current application    Text I, NBCLA = 200
    I = 1
    Repeat
       If clalev( I ) <> 0
          Infbox clanam( I )
       Endif
       I += 1
    Until I > NBCLA
   # Output from a sub-programme that can be called by "tunnel"    Close Local File [CLF]
    If clalev ([F:CLF]) and CLECUR <> ""
       Read [CLF]CODCLF = CLECUR
    Endif

 

Description and comments

clalev is used to determine whether or not a class whose keyword or internal number is given in the argument is used. If it is, the function returns a 1, otherwise it returns a 0. The internal number (used by Adonix) matches the line number in the list of variable classes displayed in the debugger, and starts with 1.

The result of the function is an Integer type.

 

Associated errors

Error

Description

ERDOM (50)

exp_num < 0.

 

Associated key words

CLANAM - CLASIZ - CLANBS - CLAVAR


CONTENTS


Copyright © Sage 1999 - 2007