| **Navigation:**  [[templates.htm|Templates]] > [[tlrcontents.htm|Template Language Reference]] > Complete Alpha Listing >====== #CLASS (define a formula class) {{c6h0068.jpg|C6H0068.jpg}} ====== | [[ case conditional execution structure .htm|{{btn_prev_n.gif|Previous page}}]][[tlrcontents.htm|{{btn_home_n.gif|Return to chapter overview}}]][[ clear clear single valued symbol .htm|{{btn_next_n.gif|Next page}}]] | | || **#CLASS(** //string, description// **)** {{blk2blue.jpg|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**