Assigns a numeric value to a Templex variable in a text window.
*SetReal()Assigns a numeric value to a Templex variable in a text window. |
|||||
*SetReal()Assigns a numeric value to a Templex variable in a text window. |
Syntax |
*SetReal(var_name, value) |
|
Arguments |
Name |
Description |
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", *Parameter(scale_factor, "Scale factor", integer) *Page(page_text_sum, "SDF Text Summary", *EndDefine()
*DefinePage(pagedef_text_sum, dat_file) *Layout(1) *TextEditor(text_sum, "Table", txtdef_text_sum, *EndDefine()
*DefineTextEditor(txtdef_text_sum, dat_file) *FileName("sdf_sum.tpl") *SetString(temp_var1, dat_file) *SetReal(temp_var2, scale_factor) *EndDefine() |
|
Application |
TextView. |
|
Context |
||
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. |
|
See also |
|
|
*FileName() in Script Files *Text() in Script Files |