HyperWorks Desktop

*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.

Previous topic Next topic No expanding text in this topic  

*SetReal()

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

Previous topic Next topic JavaScript is required for expanding text JavaScript is required for the print function  

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",
                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()        

Application

TextView.

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.

See also

 

*DefineTextEditor()

*FileName() in Script Files

*SetString()

*Text() in Script Files

Templex Reference

List of Report Statements