DIAdem

cancel
Showing results for 
Search instead for 
Did you mean: 

calculation problems

Solved!
Go to solution

Hello Norman,

 

In general Brard's script is OK. It is necessary to declare the variables which are used in the Calculation command as global. The command works fine if you integrate the variable zahl3 in the command string.

 

 

 

Dim zahl1, zahl2
GlobalDim "zahl3"
GlobalDim "zahl4"

zahl1 = 4.5
zahl2 = 3.7
zahl3 = zahl1+zahl2
zahl4 = zahl3*zahl1

Call Calculate("Ch(""[2]/Test"")=zahl3",NULL,NULL,"") 

 

You can easily get the syntax if you switch on the record made in SCRIPT and then run the command in the formula calculater.

 

Greetings

Walter

 

0 Kudos
Message 11 of 12
(755 Views)

ah thanks. i thought i hade to integrate the variable with "& zahl4 &"

 

thanks for your help.

0 Kudos
Message 12 of 12
(753 Views)