In the following example, you create a function to replace the word "Bike" with "Bicycle".
In the Report Properties, select the Code page.
Enter a valid Visual Basic function. For example:
|
Add a text field to your template, and edit the value. Code defined in the Report Properties will be listed in the Expression Editor under Custom Code. Use the following expression:
=Code. ChangeWord("I
like Bike")
In the report preview, the text will be shown as "I like Bicycle".
Calculation variables can store only numeric values. The following example shows how to store a string value in a variable.
In the Report Properties, select the Code page.
Define the variable, and create functions to set and to get the value.
|
To set the variable, use the following expression in a field or column instead of the original value.
E.g. use =code.SetMyText(Signal_ID)
instead of =Signal_ID
To use the variable later in the template, use the following expression:
=code.GetMyText()
base-id: 11031847819
id: 9007210286588811