User Tools

Site Tools


program_global_area_.htm
Navigation:  Templates > Template Language Reference > Complete Alpha Listing >====== #PROGRAM (global area) C6H0068.jpg ====== Previous pageReturn to chapter overviewNext page

#PROGRAM( name, description [, target, extension ] ) [, HLP( helpid ) ]

blk2blue.jpg

#PROGRAM Defines the beginning of the main program module.
name The name of the #PROGRAM which identifies it for the Template Registry and Template Language statements. This must be a valid Clarion label.
description A string constant describing the #PROGRAM section for the Template Registry and Application Generator.
target A string constant that specifies the source language the Template generates. If omitted, it defaults to Clarion.
extension A string constant that specifies the source code file extension for the target. If omitted, it defaults to .CLW.
HLP Specifies on-line help is available.
helpid A string constant containing the identifier to access the Help system. This may be either a Help keyword or “context string.”

The #PROGRAM statement defines the beginning of the main program module of the Template. The #PROGRAM section is terminated by the next Template Code Section (#MODULE, #PROCEDURE, #CONTROL, #CODE, #EXTENSION, or #GROUP) statement encountered, or the end of the file. Only one #PROGRAM section is allowed in a Template set.

#BUTTON, #PROMPT, and #DISPLAY statements are not valid within a #PROGRAM section. Global prompts go in the #APPLICATION section.

Example:

#PROGRAM(CLARION,'Standard Clarion Shipping Template')

 PROGRAM                  !PROGRAM statement required

 INCLUDE('Keycodes.clw')

 INCLUDE('Errors.clw')

 INCLUDE('Equates.clw')

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