Reply To: Double adding to parameter

Barry Kelly

The parameter script (or master as parameter script) will be run more than once so you need to trap it.
This should help do that.
From the GDL manual …

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


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