#ATEND (template reset code) 

Top  Previous  Next

 

#ATEND

statements

#ENDAT

#ATEND

Specifies template code to execute after the #PROCEDURE, #CODE, #CONTROL, or #EXTENSION generates.

statements

Template language code.

#ENDAT

Terminates the section.

The #ATEND structure specifies template code to execute after the #PROCEDURE, #CODE, #CONTROL, or #EXTENSION generates its code. Therefore, the statements should only contain Template language. #ATEND is usually used to reset internal template variables. You may not place #ATEND within any type of conditional structure (such as #IF or #CASE). If you need to conditionally generate the code, place the #IF or #CASE structure within the #ATEND structure.

Example:

#CONTROL(BrowseList,'Add Browse List controls')

#ATEND

 #SET(%ListQueue,%NULL)

#ENDAT

 

See Also:     #PROCEDURE , #CODE , #CONTROL , #EXTENSION