method NAVObjectTemplate.SetTemplateDef (Value as Variant)
Defines inside variables for the next Template/ExecuteTemplate call.

TypeDescription
Value as Variant If calling the first time, A String expression that indicates the DIM command to define the variables that follows, or a VARIANT expression that defines the value of the variable in the order as they were defined. 
The SetTemplateDef method was provided to let you use values/objects inside the next Template/Item call. For instance, let's say you have a date field in your form, and once the user fills it, you want a /NET Frameworks MonthCalendar object to select it. In order to do that you have to call a code like:
With NAVHost1
	.BackgroundColor = 16777215
	.Create "C:\Windows\assembly\GAC_MSIL\System.Windows.Forms\2.0.0.0__b77a5c561934e089\System.Windows.Forms.dll","System.Windows.Forms.MonthCalendar"
	With .Host
		.SetTemplateDef "Dim x"
		.SetTemplateDef #1/1/2001#
		.Template = "MaxSelectionCount = 1;SelectionStart = x"
	End With
End With

This sample defines the variable x  to be 1/1/2001 for the Template call, so the SelectionStart will be set on 1/1/2001.

The call of SetTemplateDef method consists in:

Once you defined the variables, they will be available for the next calls of Template/Item properties.