User Tools

Site Tools


class_define_a_formula_class_.htm
Navigation:  Templates > Template Language Reference > Complete Alpha Listing >====== #CLASS (define a formula class) C6H0068.jpg ====== Previous pageReturn to chapter overviewNext page

#CLASS( string, description )

blk2blue.jpg

#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

class_define_a_formula_class_.htm.txt · Last modified: 2021/04/15 15:57 by 127.0.0.1