My goal is to create a GUI which is used to set limits against parameters for tests I am running. The GUI will have three different sections and each section references a different list available for setting limits. Each section is contained within an outline box where a function "addParam" is called. This function adds a new h List Row to the outline box which contains three items: A delete button, a combo box for selecting parameters, and an "Add Limit" for adding one or more limits onto the same parameter. When "Add Limit" is pressed it references a list that was passed into the function showing the available stats for that given table.
My problem is: When I add limits in one outline box, and move onto editing a different outline box, if I try to back track to a previous parameter row in the last outline box then the add limit button references the stat list from the second outline box and not the first; however, if I "Add Parameter" of the first outlinebox again then the list corrects itself to the proper stat list.
addParam = function({parameter, statList},
selectParam = comboBox(parameter);
keepStats = statList; //If I don't create "keepStats" then statList cannot be referenced after function is called
//Deletes row
dltRow = buttonBox("Delete", <<SETFUNCTION></SETFUNCTION>Sorry, no time for debugging. But a tip.
Use Print("") and Show() statements in your code to write values/parameters into the log, this often helps to narrow down the problem. From what I saw the issue is a bad/overwritten reference when pressing the add Row button.
Also you may want to use "Names Default to Here(1)" in your script as you may overwrite your variables using globals. Just some thoughts without looking much into it.