20.11 String Processing

Certain functions within TreeAge Pro use string arguments. Specifically, you might use the DebugWrite or DebugWriteForce functions to ouptut text to the Calculation Trace Console, see Model Debugging and Validation Tools. The following table illustrates a few things you can do with strings to generate helpful debug output.

Syntax Description
Str(number) Converts numeric data to a string.
+

Operator to concatenate two strings together.

For example, the following variable definition would use the _monte_pre_trial_eval simulation keyword to output the current _sample and _trial values to the calculation trace console.

_monte_pre_trial_eval = DebugWriteForce("_sample=" + Str(_sample) + ", _trial=" + Str(_trial))