Reply To: Variable Mismatch

Home Forums Problems and solutions in GDL Others Variable Mismatch Reply To: Variable Mismatch

#4792
Barry Kelly
Participant

I am a little confused by your script.
‘SquareV2’ should never change as nowhere in your formula are you setting the value for it.

To check for the ‘firstrun’ of the parameter script, you can try using this to catch it…

First Occasion in Progress
n = APPLICATION_QUERY (“parameter_script”, “firstoccasion_in_progress”, isFirstRun)
This command returns whether the current run is the first run or a consequence of a previous execution of the parameter script which changed
some parameters. This command has no additional parameters.
The distinction may be important when a part of the parameter script executes a triggered event – e.g. it handles the pushing of a function button.
isFirstRun: The returned value shows whether the current run is the first run

Barry.

Versions 6.5 to 22
Dell XPS- i7-6700 @ 3.4Ghz, 16GB ram, GeForce GTX 960 (2GB), Windows 10
Dell Precision M6800 - i7 4700MQ @ 2.40GHz, 16GB RAM, AMD FirePro M6100 (2GB), Windows 7 64bit