![]()
It is important that you go through the Inserting a FlowCode Template tutorial. Several other tutorials will assume that you know how to insert a template.
The process of inserting a FlowCode template is not difficult. Just follow the steps below and you will easily be able to try some of the other example tutorials.
Note: all of the features shown here are not available under NT3.51.
1.From a running VFC session select Insert/Template Objects . You will see the template insertion dialog window appear.
2.For future reference, if a tutorial asks you to explore the templates, or insert a template from the templates folder, you will generally press the Explore Templates button :
.
3.Press it now to continue.

This will open the VFC Templates directory. You should see several folders that each contain templates for different language domains.
Note: Sometimes a tutorial will tell you to look someplace else for a template. In that case you may not need to use the Explore Templates button.
6.To see a template work let's open the C folder. You will see several FlowCode files (shown below). Templates are, in fact, special cases of FlowCode files; any FlowCode file can be used as a template.

4.Let's 'insert' the Hello Template. To do this, drag and drop Hello Template.ins file onto the Template insertion window.
Note: If you accidentally drop the file onto VFC instead of the Template insertion window, VFC will load the file as a flowcode file. In this case you may have to cancel the load, or create a new VFC file session and try it again.
5.The Template insertion window displays the related embedded template code. Not all templates have embedded code, so sometimes you may not see any code in this window.

This code is used by the template engine (i.e. interrupter) to manipulate a pattern of flowcode. In some cases the template code will ask you some questions that will tailor what you are generating. A VFC Template is a lot like a code wizard, or a macro.
6.Press the Insert button. A series of popup dialogs will ensue that relate to the Hello Template you are inserting, such as the following:

For this tutorial, just press OK to all of them.
Note: Some templates may not have any popup dialogs.
7.The Template insertion window will disappear and you will see the resulting flowcode in your VFC session.
Note: The name of the FlowCode file (hello.ins), the language keyfile (in this case, VC4.key), and a few other things have been altered by the template. The actions of the embedded template code are responsible.
8.This concludes the template insertion task. You may want to practice it a few more times using some of the other templates.
![]()