DIAdem

cancel
Showing results for 
Search instead for 
Did you mean: 

how do you reference a created global variable in a report text field?

I have created a parameter using the Globaldim statement in a script file. when I reference this parameter in any other script file during the current DIAdem session the value is passed without any issue.  Call the variable parmxyz where I assign it a value of 25.3 

The help section under Globaldim mentions that global variables can be referenced in all panels, scripts, and dialogue boxes.  When I try to insert a text box on a report page using the @@parmxyz@@ it returns NOVALUE where I expect to see 25.3 (for example).

 

When I substitute @@CurrDate@@ I do get the date, so I know the text box is valid.  What am I doing wrong?

 

Steve    M 

0 Kudos
Message 1 of 2
(3,649 Views)

Hello Steve!

 

It should work the way you did it. But their are some circumstances wich might prevent it:

  1. You have reseted the global script engine. All variables will be lost.
  2. You have a Sub with the same name in a command extension script. There is no warning 😉

One Test you can make is to put in '@@TypeName(paramxy)@@' as the expression to see the variable type. You can also try a realy unique variable name. The last option is to use ItemInfoGet to get detailed infos about your variable.

 

Matthias

Matthias Alleweldt
Project Engineer / Projektingenieur
Twigeater?  
0 Kudos
Message 2 of 2
(3,645 Views)