*SetReal()

Assigns a numeric value to a Templex variable in a text window.

Syntax

*SetReal(var_name, value)

Application

TextView

Inputs

var_name
The name of the variable.
value
The numeric value for the variable.

Example

*DefineReport(repdef_sdf_test, dat_file)
	*ReportLabel("SDF Test Summary")
	*Parameter(dat_file, "Wheel datafile name", 
                 filename, "*.dat")
	*Parameter(scale_factor, "Scale factor", integer)
	*Page(page_text_sum, "SDF Text Summary", 
            pagedef_text_sum, dat_file)
*EndDefine()

*DefinePage(pagedef_text_sum, dat_file)
	*Layout(1)
	*TextEditor(text_sum, "Table", txtdef_text_sum, 
                  dat_file)
*EndDefine()

*DefineTextEditor(txtdef_text_sum, dat_file)
	*FileName("sdf_sum.tpl") 
	*SetString(temp_var1, dat_file)
	*SetReal(temp_var2, scale_factor)
*EndDefine()

Context

*DefineTextEditor()

Comments

The window contents of the TextEditor in a report can also include Templex templates using the *Text() or *Filename() statements.

The *SetReal() and *SetString() statements are used to pass parameters from the definition block into a Templex template.