*SetString()
Assigns a string value to a Templex variable in the text editor.
Syntax
*SetString(string_name, value)
Application
TextView
Inputs
- string_name
- The name of the string variable.
- value
- The text 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.