# Templates and the Application Generator: Template language

**URL:** <https://forums.softvelocity.com/t/templates-and-the-application-generator-template-language/1626>\
**Category:** Knowledge Base\
**Tags:** templates\
**Created:** [November 9, 2026, 11:37am UTC](https://forums.softvelocity.com/t/templates-and-the-application-generator-template-language/1626 "2026-11-09T11:37:16Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![rzaunere](https://avatars.discourse-cdn.com/v4/letter/r/f14d63/32.png) [@rzaunere](https://forums.softvelocity.com/u/rzaunere)\
**Post date:** [November 9, 2026, 11:37am UTC](https://forums.softvelocity.com/t/templates-and-the-application-generator-template-language/1626/1 "2026-11-09T11:37:16Z")

</div>

Part of [Templates and the Application Generator: the hub](https://forums.softvelocity.com/t/templates-and-the-application-generator-the-hub/310). 77 entries under this heading; every entry opens as its own topic.

- [How to reach the symbols of another vendor's template instance from your own template](https://forums.softvelocity.com/t/how-to-reach-the-symbols-of-another-vendors-template-instance-from-your-own-template/302) - Loop the active template instances with a WHERE on TemplateName(ChainName) in upper case, and enter each with CONTEXT to reach another template's symbols.
- [A template prompt value with an apostrophe gives "string not terminated" in the generated code](https://forums.softvelocity.com/t/a-template-prompt-value-with-an-apostrophe-gives-string-not-terminated-in-the-generated-code/303) - Wrap the template variable in the shipped StripPling group, called as an expression, so apostrophes are doubled and the string terminates.
- [Is the %CWRoot template symbol safe to use? It is not in the help index](https://forums.softvelocity.com/t/is-the-cwroot-template-symbol-safe-to-use-it-is-not-in-the-help-index/304) - The CWRoot symbol is documented, with CWVersion, in the help topic Miscellaneous Symbols, though the help index does not list it.
- [How to sort a multi-valued symbol so a #PROMPT list shows alphabetically](https://forums.softvelocity.com/t/how-to-sort-a-multi-valued-symbol-so-a-prompt-list-shows-alphabetically/312) - Copy the values into a second symbol declared with UNIQUE; UNIQUE stores values in ascending order, so a prompt list built from it comes out sorted.
- [Making a template #PROMPT stay selected until it has a value](https://forums.softvelocity.com/t/making-a-template-prompt-stay-selected-until-it-has-a-value/313) - A prompt cannot be held until filled; options were enabling fields only after it is filled, a DLL window via #RUNDLL, or a #BOXED group shown only when the control is set.
- [Generating one IF statement around many lines instead of one IF per line](https://forums.softvelocity.com/t/generating-one-if-statement-around-many-lines-instead-of-one-if-per-line/314) - Put the generated IF and END outside the #FOR so only the HIDE line repeats; guard with #IF(ITEMS()) if there may be no buttons.
- [Reading the procedure template's symbols from an extension's #PREPARE](https://forums.softvelocity.com/t/reading-the-procedure-templates-symbols-from-an-extensions-prepare/315) - Use #CONTEXT inside #PREPARE to reach the procedure template's symbols that are otherwise out of scope there; #PREPARE only shapes the prompt interface.
- [How do I loop the contents of a list control's queue in a template to write it to a text file?](https://forums.softvelocity.com/t/how-do-i-loop-the-contents-of-a-list-controls-queue-in-a-template-to-write-it-to-a-text-file/316) - PROP:From is runtime only; in a template use %ControlFrom and generate code with WHO() and WHAT() to walk the queue fields, or start from a posted browse-to-ASCII template.
- [How do I get the prefix of a local queue in a template when I only have %ControlFrom?](https://forums.softvelocity.com/t/how-do-i-get-the-prefix-of-a-local-queue-in-a-template-when-i-only-have-controlfrom/317) - Find the colon in a %ControlField and slice off the prefix, or use EXTRACT on the queue declaration with 'PRE',1; the first form was confirmed.
- [Is there an OMIT() equivalent for templates, to skip #PDEFINE when the template loads in Clarion 5? (Reported, not reproduced)](https://forums.softvelocity.com/t/is-there-an-omit-equivalent-for-templates-to-skip-pdefine-when-the-template-loads-in-clarion-5-reported-not-reproduced/318) - Posters suggested testing %CWVersion or wrapping the line in #COMPILE, or keeping two template versions; nobody reported a result, and dropping Clarion 5 support was advised.
- [One TPL file for all my templates, or many separate TPL files?](https://forums.softvelocity.com/t/one-tpl-file-for-all-my-templates-or-many-separate-tpl-files/319) - Use one .tpl with #INCLUDE lines naming .tpw files, as CW.TPL does; each .tpl holds one #TEMPLATE and gives one node in the template registry.
- [How do I let the user pick procedures from a list in a utility template and loop only the selected ones?](https://forums.softvelocity.com/t/how-do-i-let-the-user-pick-procedures-from-a-list-in-a-utility-template-and-loop-only-the-selected-ones/320) - Fill a MULTI symbol with #FOR(%Procedure) and #ADD in #PREPARE, offer it with a #PROMPT FROM SELECTION, then #FIX against the chosen symbol to test for selected procedures.
- [How do I show a template prompt list (such as the controls) in alphabetical order?](https://forums.softvelocity.com/t/how-do-i-show-a-template-prompt-list-such-as-the-controls-in-alphabetical-order/321) - Add SORT to a #BUTTON FROM list; for prompts without a sort attribute, fill your own UNIQUE symbol, which stays sorted.
- [How a template detects that another template is in the application](https://forums.softvelocity.com/t/how-a-template-detects-that-another-template-is-in-the-application/257) - Loop over %ActiveTemplate, compare the upper-cased name with the other template's name, set a flag and #BREAK to generate code conditionally.
- [What does %' (a percent sign before a single quote) mean in template symbols?](https://forums.softvelocity.com/t/what-does-a-percent-sign-before-a-single-quote-mean-in-template-symbols/322) - %'symbol expands the symbol doubling single quotes and unpaired left angle brackets and curly braces; it equals '%(QUOTE(%Procedure))'.
- [How a template can tell whether a procedure is local to the app or external](https://forums.softvelocity.com/t/how-a-template-can-tell-whether-a-procedure-is-local-to-the-app-or-external/323) - Test the procedure template symbol for the value EXTERNAL while looping the procedures to tell external procedures from local ones.
- [How an extension template detects whether the application uses the ABC or Legacy chain](https://forums.softvelocity.com/t/how-an-extension-template-detects-whether-the-application-uses-the-abc-or-legacy-chain/324) - An extension template can read the application template family symbol on 5.5 and 6; older versions needed a helper group called once with an override prompt.
- [A template symbol set in a global extension is never found in the procedure extension it adds (Reported, not reproduced)](https://forums.softvelocity.com/t/a-template-symbol-set-in-a-global-extension-is-never-found-in-the-procedure-extension-it-adds-reported-not-reproduced/325) - A symbol declared and prompted in a global extension was not found in the procedure extension it added; posters disagreed on #DECLARE with #PROMPT, with no settled answer.
- [An extension template cannot change the procedure's %Prototype; how to enforce the parameters it needs](https://forums.softvelocity.com/t/an-extension-template-cannot-change-the-procedures-prototype-how-to-enforce-the-parameters-it-needs/326) - An extension template cannot set the read-only %Prototype; test it in #ATSTART with INSTRING and raise an #ERROR naming the procedure and template.
- [Template code to list only the files that use a derived FileManager class](https://forums.softvelocity.com/t/template-code-to-list-only-the-files-that-use-a-derived-filemanager-class/327) - Walk the ClassItem symbol for FileManager items and test UseDefaultABCBaseClass to list files with a derived class; the file list itself does not carry this.
- [Giving a template #PROMPT a default value, then "Unknown identifier" for the variable the user typed](https://forums.softvelocity.com/t/giving-a-template-prompt-a-default-value-then-unknown-identifier-for-the-variable-the-user-typed/328) - Add DEFAULT to the PROMPT; a prompt stores only text, so declare the variable in the GlobalData embed or pick existing ones with FROM.
- [How do I add prompts (such as check boxes) for each control of a window from a template?](https://forums.softvelocity.com/t/how-do-i-add-prompts-such-as-check-boxes-for-each-control-of-a-window-from-a-template/329) - To give each control its own prompts use #FIELD in the template; an extension with an inline control list also worked, with a self-filled list sorting alphabetically.
- [A template #PROMPT with a @S3 picture shows 1.0 as 1: the trailing zero is lost](https://forums.softvelocity.com/t/a-template-prompt-with-a-s3-picture-shows-1-0-as-1-the-trailing-zero-is-lost/330) - An unquoted DEFAULT(1.0) makes the symbol numeric so the zero vanishes; quote the default and quote the symbol where the generated code expands it.
- [How a #CONTROL template finds the USE variable and equate of its own ENTRY controls](https://forums.softvelocity.com/t/how-a-control-template-finds-the-use-variable-and-equate-of-its-own-entry-controls/331) - Loop the control symbol filtered to the active template instance and keep it in your own declared symbol; including a TXA from the template was another idea.
- [Is there a case-insensitive #FIX or #FIND in the template language?](https://forums.softvelocity.com/t/is-there-a-case-insensitive-fix-or-find-in-the-template-language/332) - Add the NOCASE attribute to the FIX statement to match a file name regardless of case; the poster found it in neither the help nor the guide.
- [A third-party template that registered fine now fails: pipe character in a #! comment line](https://forums.softvelocity.com/t/a-third-party-template-that-registered-fine-now-fails-pipe-character-in-a-comment-line/333) - A pipe in a #! comment line failed to register in 5.5b because it became the line-continuation character; remove the pipes from the comments.
- [How do I split %FileUserOptions and %FieldUserOptions into their separate options in a template?](https://forums.softvelocity.com/t/how-do-i-split-fileuseroptions-and-fielduseroptions-into-their-separate-options-in-a-template/334) - Position with FIND and read each option by name with EXTRACT on the user options symbol; loop a list of names for several.
- [Can a template prompt dialog show a live preview that changes as the user picks a font or color?](https://forums.softvelocity.com/t/can-a-template-prompt-dialog-show-a-live-preview-that-changes-as-the-user-picks-a-font-or-color/335) - A template prompt page cannot refresh a live sample as choices change; the poster settled for a Preview button opening a second page.
- [Converting existing entry controls to use a control template without deleting and re-populating them](https://forums.softvelocity.com/t/converting-existing-entry-controls-to-use-a-control-template-without-deleting-and-re-populating-them/336) - Existing controls cannot simply switch to a control template; use an extension or code template, change the control type via the dictionary, or edit through a TXA export and import.
- [A #CODE template with REQ(extension) and #RESTRICT gives "Unknown Variable" for the extension's symbol (Reported, not reproduced)](https://forums.softvelocity.com/t/a-code-template-with-req-extension-and-restrict-gives-unknown-variable-for-the-extensions-symbol-reported-not-reproduced/337) - A #CODE template with REQ(extension) and #RESTRICT gave Unknown Variable; suggestions were VAREXISTS, re-entering the procedure, a #CONTEXT block; poster dropped the #RESTRICT.
- [Template error "%Parameters is read only" on #SET(%Parameters, ...) in Clarion 9, fine in Clarion 8](https://forums.softvelocity.com/t/template-error-parameters-is-read-only-on-set-parameters-in-clarion-9-fine-in-clarion-8/338) - Clarion 9 made %Parameters read only; remove the #SET and use a fully qualified #PROTOTYPE on the procedure template to force the parameters.
- [A #PROMPT that takes either a dictionary field or a literal, like the !variable / file name box in the DCT](https://forums.softvelocity.com/t/a-prompt-that-takes-either-a-dictionary-field-or-a-literal-like-the-variable-file-name-box-in-the-dct/339) - Use #PROMPT with OPTFIELD for a field or a constant, or EXPR for any expression; the leading ! is a template convention you must strip in your code.
- [A #CONTROL template with REQ(MultiChildRelationTree(ABC)) never appears in the control list](https://forums.softvelocity.com/t/a-control-template-with-req-multichildrelationtree-abc-never-appears-in-the-control-list/340) - In REQ the bracketed part is the required template's own name from its TEMPLATE line, not the family, and the control name takes no percent sign; spell it out.
- [EMBEDBUTTON in an extension template opens one embed point: how to offer all of the extension's embeds](https://forums.softvelocity.com/t/embedbutton-in-an-extension-template-opens-one-embed-point-how-to-offer-all-of-the-extensions-embeds/341) - EMBEDBUTTON opens the embeds of one identifier symbol; multi-valued symbols, redefined EMBED statements and the TREE attribute were the ideas, but the poster's final change is cut off.
- [Using a control template's equate (?Button1) without the question mark in generated code](https://forums.softvelocity.com/t/using-a-control-templates-equate-button1-without-the-question-mark-in-generated-code/342) - You cannot change a populated control's equate, but #IF with Slice on %Control and #SET can strip the leading question mark into your own symbol.
- [Template code: collecting every file a procedure uses (Primary, Secondary, Other and the templates' files)](https://forums.softvelocity.com/t/template-code-collecting-every-file-a-procedure-uses-primary-secondary-other-and-the-templates-files/343) - Collect Primary, Secondary and Other files into a list in a #GROUP, then repeat the loop inside each active template instance.
- [A build date and time template forces a full recompile on every build](https://forums.softvelocity.com/t/a-build-date-and-time-template-forces-a-full-recompile-on-every-build/344) - Instead of a global equate that forces a full recompile, write the equate to an INC file with CREATE and CLOSE and include it in one separate module.
- [Converting many apps from an old extension template to a new one with similar symbols](https://forums.softvelocity.com/t/converting-many-apps-from-an-old-extension-template-to-a-new-one-with-similar-symbols/345) - Export each app to TXA, search and replace the old extension template names with the new ones, import, and test one app first.
- [Adding a procedure extension template only to procedures that already have WindowResize(ABC)](https://forums.softvelocity.com/t/adding-a-procedure-extension-template-only-to-procedures-that-already-have-windowresize-abc/346) - Add a RESTRICT that loops ActiveTemplate for WindowResize(ABC), and name your own template chain in the global extension's APPLICATION attribute.
- [#LocalData with a %TemplateSymbol gives "Identifier Expected": how do I get a template variable into the list box formatter?](https://forums.softvelocity.com/t/localdata-with-a-templatesymbol-gives-identifier-expected-how-do-i-get-a-template-variable-into-the-list-box-formatter/347) - All DATA sections of a template take literals only, so a template symbol in LocalData gives Identifier Expected; no way to reach the formatter was found.
- [A control template that turns on "Enable Sort Header" and sets the locator control of a browse](https://forums.softvelocity.com/t/a-control-template-that-turns-on-enable-sort-header-and-sets-the-locator-control-of-a-browse/348) - Make the control template require the browse template and #SET its prompt symbols for sort header and locator, finding them in the standard browse template; use #CONTEXT otherwise.
- [How do I replace the default message of a ToDo procedure?](https://forums.softvelocity.com/t/how-do-i-replace-the-default-message-of-a-todo-procedure/349) - A ToDo is a procedure template, so write your own default procedure template in a TPL file, register it, and pick it instead of the standard ToDo.
- [Template code from #CALL or #INSERT is generated at column 3, not column 1](https://forums.softvelocity.com/t/template-code-from-call-or-insert-is-generated-at-column-3-not-column-1/350) - Save %OutputIndent in an equate, apply INDENT with its negative, write the line, then restore the saved indent to get column 1.
- [What does %[55] mean in a template statement such as %55?]([What does %[55] mean in a template statement such as %[55](LINKNAME(...))?](https://forums.softvelocity.com/t/what-does-55-mean-in-a-template-statement-such-as-55-linkname/351)) - In a template, %55 pads the expansion to a field width of 55 characters so columns line up; longer values are not cut.
- [An #AT placed inside #FOR(%File) / #FOR(%Field) in an extension template does not generate](https://forums.softvelocity.com/t/an-at-placed-inside-for-file-for-field-in-an-extension-template-does-not-generate/352) - Do not wrap an #AT in #FOR; the #AT repeats per file and field itself, so limit it with a Where clause or a test inside.
- [Registering the UltimatePlaceholder template fails: "Expected a section header" at line 1 (Reported, not reproduced)](https://forums.softvelocity.com/t/registering-the-ultimateplaceholder-template-fails-expected-a-section-header-at-line-1-reported-not-reproduced/353) - Registering a downloaded template gave "Expected a section header"; moving the #SYSTEM block and fixing Unix line endings were suggested but the error stayed.
- [A template #PROMPT with FIELD will not accept a global variable (the lookup button is disabled)](https://forums.softvelocity.com/t/a-template-prompt-with-field-will-not-accept-a-global-variable-the-lookup-button-is-disabled/354) - A FIELD prompt does not offer global data; use an EDIT or EXPR prompt, or a FROM on the global data symbol, to reach globals.
- [#RUNDLL warning "Error: 998" and "DLL can't be found" when generating a Clarion 6 app from the Clarion 7 IDE (Reported, not reproduced)](https://forums.softvelocity.com/t/rundll-warning-error-998-and-dll-cant-be-found-when-generating-a-clarion-6-app-from-the-clarion-7-ide-reported-not-reproduced/355) - A #RUNDLL call to a Clarion 6 DLL warned "Error: 998" when generating from the Clarion 7 IDE; copying the DLL to the Clarion 7 bin folder did not help.
- [Changing the text of a PROMPT inside a control template so the window formatter shows it](https://forums.softvelocity.com/t/changing-the-text-of-a-prompt-inside-a-control-template-so-the-window-formatter-shows-it/356) - A PROMPT in a control template cannot be changed for the window formatter; only during generation with difficulty, or at run time in code.
- [Letting the template user pick a font: FONTDIALOG in a #PROMPT, and the SVFnGrp.TPW groups](https://forums.softvelocity.com/t/letting-the-template-user-pick-a-font-fontdialog-in-a-prompt-and-the-svfngrp-tpw-groups/357) - FONTDIALOG is not a usable #PROMPT type; call the font groups in SVFnGrp.TPW and add the chain name, such as (ABC), to a group from another chain.
- [Template language: testing whether a window control's help (PROP:Hlp) is empty](https://forums.softvelocity.com/t/template-language-testing-whether-a-window-controls-help-prop-hlp-is-empty/358) - Test a control's help in template language with EXTRACT on %ControlStatement for HLP, because comparing %Control{PROP:Hlp} to empty is rejected.
- [Sending e-mail with the Global Document Handling template: the mail server wants a user name and password](https://forums.softvelocity.com/t/sending-e-mail-with-the-global-document-handling-template-the-mail-server-wants-a-user-name-and-password/359) - Register ABMAIL.TPL for Global Document Handling; the AuthUser and AuthPass properties carry the mail login, and the demo needed them set for transmit first.
- [An extension template writes empty external files when the Embeditor is opened: how to detect Embeditor generation](https://forums.softvelocity.com/t/an-extension-template-writes-empty-external-files-when-the-embeditor-is-opened-how-to-detect-embeditor-generation/280) - Test %EditProcedure or compare %GenerateMode with 'SOURCE' or 'PWEE' to tell Embeditor generation from source generation, so an extension template writes files only for source.
- [A procedure template that loops %LocalData to FREE every local queue crashes the IDE](https://forums.softvelocity.com/t/a-procedure-template-that-loops-localdata-to-free-every-local-queue-crashes-the-ide/360) - Loop %LocalData with a WHERE(INSTRING('QUEUE',%LocalDataStatement)) filter to FREE local queues; slicing the symbol with [1 : 5] crashed the C55 IDE, SUB() also worked.
- [How do I share the #AT code between an extension template and a control template? (#GROUP refuses #AT)](https://forums.softvelocity.com/t/how-do-i-share-the-at-code-between-an-extension-template-and-a-control-template-group-refuses-at/361) - A #GROUP cannot hold #AT; group the code between #AT and #END, or use a global template with %GatherSymbols priorities; #INCLUDE of a .tpw crashed the IDE.
- [A control template prompt should be filled the moment the control is populated, not after the first generate](https://forums.softvelocity.com/t/a-control-template-prompt-should-be-filled-the-moment-the-control-is-populated-not-after-the-first-generate/362) - Put the #PREPARE block above the #PROMPT and drop the prompt's DEFAULT attribute, so a control template prompt is filled the moment the control is populated.
- [Old templates test %CWTemplateVersion \< 'v6.1' and stopped working in Clarion 10](https://forums.softvelocity.com/t/old-templates-test-cwtemplateversion-v6-1-and-stopped-working-in-clarion-10/363) - %CWTemplateVersion is a string, so 'v10.0' sorts below 'v6.1'; compare the numeric %CWVersion instead, for example #IF(%CWVersion \< 6100).
- [How to read the %Primary of a related extension template from a control template](https://forums.softvelocity.com/t/how-to-read-the-primary-of-a-related-extension-template-from-a-control-template/758) - To read an extension template's %Primary from a control template, use %ActiveTemplateParentInstance with #SELECT in a #PREPARE block before the field prompt.
- [A code template that writes code at two places with room for your own statements between them](https://forums.softvelocity.com/t/a-code-template-that-writes-code-at-two-places-with-room-for-your-own-statements-between-them/759) - A code template with one #EMBED and two #AT blocks tied to the template instance gave code at two priorities, but orphan embeds; three prompts with #IF was the standard form.
- [Making a template prompt window wider](https://forums.softvelocity.com/t/making-a-template-prompt-window-wider/760) - The template prompt window has a fixed width; AT on a sheet did nothing, so hide tabs conditionally, nest the sheet in a button, or use a RUNDLL dialog.
- [Template code to list all the files a procedure uses when it has several browses](https://forums.softvelocity.com/t/template-code-to-list-all-the-files-a-procedure-uses-when-it-has-several-browses/761) - Loop over %ActiveTemplate and %ActiveTemplateInstance, add each instance's %Primary and its %Secondary files to your own multi-valued symbol, so several browses are all listed.
- [A symbol set in %ProcedureSetup is "not yet declared" in ThisWindow.Init()](https://forums.softvelocity.com/t/a-symbol-set-in-proceduresetup-is-not-yet-declared-in-thiswindow-init/762) - A symbol declared in the ProcedureSetup embed is not yet visible in Init; replies pointed to #ATSTART and the data section, without a full explanation.
- [How do I make the PRIMARY file of an extension template optional?](https://forums.softvelocity.com/t/how-do-i-make-the-primary-file-of-an-extension-template-optional/1497) - Add the OPTIONAL flag to the PRIMARY attribute of an extension template; the template language cannot set %Primary, so the developer picks the file in the schematic.
- [A WINDOW added to a #DEFAULT section of a #PROCEDURE template does not appear and the Window button stays disabled](https://forums.softvelocity.com/t/a-window-added-to-a-default-section-of-a-procedure-template-does-not-appear-and-the-window-button-stays-disabled/1498) - A window in a procedure template's default section only appears, and the Window button only enables, when the procedure template line carries the WINDOW attribute.
- [An #EMBED in a code template is replicated at every instance of the template](https://forums.softvelocity.com/t/an-embed-in-a-code-template-is-replicated-at-every-instance-of-the-template/1499) - Make the embed depend on the Active Template Instance: declare a MULTI symbol in #ATSTART, then use #EMBED with the instance and MAP attribute so each instance gets its own embed point.
- [A #PROMPT list built FROM(%ModuleData) shows nothing, while %GlobalData and %LocalData list fine](https://forums.softvelocity.com/t/a-prompt-list-built-from-moduledata-shows-nothing-while-globaldata-and-localdata-list-fine/1500) - Put a PREPARE block with FIND on the module-procedure symbol before the prompts, so the module symbol is fixed and the module variable list fills.
- [Adding a field to every window structure from a template (is there a window section embed?)](https://forums.softvelocity.com/t/adding-a-field-to-every-window-structure-from-a-template-is-there-a-window-section-embed/1880) - There is no window section symbol; create the control with CREATE in the window manager Init embed after the window opens, or add the name to the caption.
- [%ControlUse gives a negative number for a MENU item; which symbol gives ?MENU1 as text](https://forums.softvelocity.com/t/controluse-gives-a-negative-number-for-a-menu-item-which-symbol-gives-menu1-as-text/1881) - Use %Control, not %ControlUse, for the field equate; quote it as '%Control' to generate the equate label as a string.
- [Generating a whole function from a template instead of adding an extension to a hand-made Source procedure](https://forums.softvelocity.com/t/generating-a-whole-function-from-a-template-instead-of-adding-an-extension-to-a-hand-made-source-procedure/1882) - Convert the extension template to a procedure template with #PROCEDURE and #PROTOTYPE, study an existing procedure template's source, and generate a separate module through global embeds.
- [A template fails to register with "A section called GlobalInit has already been defined"](https://forums.softvelocity.com/t/a-template-fails-to-register-with-a-section-called-globalinit-has-already-been-defined/1963) - Two #EXTENSION lines with the same name in one template give "section already defined"; give each extension its own name and register again.
- [#WITH(%ClassItem,...) in an extension template reports a reference to an unknown symbol](https://forums.softvelocity.com/t/with-classitem-in-an-extension-template-reports-a-reference-to-an-unknown-symbol/2056) - An unknown-symbol error at #WITH on the class item came from #INSERT(%OOPPrompts) written without the (ABC) family.
- [A template #BUTTON with WHERE(...) is always shown, while #BOXED with the same WHERE works (Reported, not reproduced)](https://forums.softvelocity.com/t/a-template-button-with-where-is-always-shown-while-boxed-with-the-same-where-works-reported-not-reproduced/2057) - A template #BUTTON with WHERE and no FROM stayed visible while #BOXED hid; wrapping the button in #ENABLE worked for the poster.
- [Adding the same custom code to about 50 update procedures in one step](https://forums.softvelocity.com/t/adding-the-same-custom-code-to-about-50-update-procedures-in-one-step/2147) - Write a global #EXTENSION template with an #AT embed restricted by WHERE on the procedure template, or buy a ready-made global extension product.
- [Templates moved from Clarion 6.3 to 10 fail at the #IF test of %CWTemplateVersion against 'v6'](https://forums.softvelocity.com/t/templates-moved-from-clarion-6-3-to-10-fail-at-the-if-test-of-cwtemplateversion-against-v6/2148) - Test %CWTemplateVersion against v10.0 with SUB count 5 in Clarion 10, and close each #IF with #ENDIF because #END is stricter now.
- [What breaks when a Clarion 5.5 ABC app and its templates are opened and compiled in Clarion 6?](https://forums.softvelocity.com/t/what-breaks-when-a-clarion-5-5-abc-app-and-its-templates-are-opened-and-compiled-in-clarion-6/2234) - Third-party libraries need Clarion 6 versions, and #PROJECT lines naming C55 libraries must change; a version test with CWVersion was posted.
- [How does a template find out which Clarion version it runs under (5.5 or 6)?](https://forums.softvelocity.com/t/how-does-a-template-find-out-which-clarion-version-it-runs-under-5-5-or-6/2235) - Compare the %CWVersion symbol as a number, such as 6000 or 6100, or cut its first digit with SUB inside the template.
- [GEN: Unknown Variable '%GlobalUseABCClasess' in my own template chain](https://forums.softvelocity.com/t/gen-unknown-variable-globaluseabcclasess-in-my-own-template-chain/2236) - The misspelled symbol ships in the standard templates and is not hard coded; an #INCLUDE buried in the poster's own templates used it.
