Method SetVar

SetVar(string, object, string, string)

Assigns a value to the named variable using the Tedds 'SetVar' function. For information on Tedds calculation functions, use Tedds for Word and refer to the Tedds engineering library index at "Writing your own custom calculations\Calculation writing documentation\Tedds functions"

Declaration
ICalcValue SetVar(string name, object value, string units = "", string attributes = "")
Parameters
Type Name Description
string name

Name of the variable

object value

Value to assign

string units

Units of the assigned value, only applicable if the value is numeric.

string attributes

Variable attribute flags (h = hidden, t = temporary, e = expression, r = readonly)

Returns
Type Description
ICalcValue

Actual value of variable

Was this helpful?
The feedback you give here is not visible to other users. We use your comments to improve the content.
Previous
Next