atend_template_reset_code_.htm
Navigation: Templates > Template Language Reference > Complete Alpha Listing >====== #ATEND (template reset code) ====== | |
#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
atend_template_reset_code_.htm.txt · Last modified: 2021/04/15 15:56 by 127.0.0.1