#CLASS (define a formula class) 

Top  Previous  Next

 

#CLASS( string, description )

#CLASS

Defines a formula class.

string

A string constant containing the formula class.

description

A string expression containing the description of the formula class to display in the list of those available in the Formula Editor.

The #CLASS statement defines a formula class for use in the Formula Editor. The Formula Class allows the Template to determine the precise logical position at which the formula appears in the generated source code.

Example:

#PROCEDURE(SomeProc,'An Example Template'),WINDOW

#CLASS('START','At beginning of procedure')

#CLASS('LOOP','In process loop')

#CLASS('END','At end of procedure')

%Procedure PROCEDURE

%ScreenStructure

 CODE

 #INSERT(%GenerateFormulas,'START')      #!Generate START class formulas

 OPEN(%Screen)

 ACCEPT

   #INSERT(%GenerateFormulas,'LOOP')     #!Generate LOOP class formulas

 END

 #INSERT(%GenerateFormulas,'END')        #!Generate END class formulas

Comments