Tcl basics and samples

A Tcl script is used to generate the final file using .tcl files and the intermediary .xml file generated during the build of the application. The tcl files can be modified to produce different 4gl code or to reference newly added properties.

Tcl (pronounced "tickle") is a scripting language commonly used for scripted applications and GUIs. You can use a scripting language of your choice or modify the included tcl files.

To determine which tcl file to modify turn on verbose mode for build, link, execution rules using Tools > Preferences (or, if you are on a Mac, > Preferences), then Compiler and Runtime. Compile the diagram file that you want to modify. Find tclsh in the resulting output to see which tcl files are used.