HyperWorks Desktop

*SetString()

Assigns a string value to a Templex variable in the text editor.

*SetString()

Assigns a string value to a Templex variable in the text editor.

Previous topic Next topic No expanding text in this topic  

*SetString()

Assigns a string value to a Templex variable in the text editor.

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

Syntax

*SetString(string_name, value)

Arguments

Name

Description

 

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

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

*SetReal()

*Text() in Script files

Templex Reference

List of Report Statements