Yes it will let you edit a QARun combo box dialog with no problems although the syntax is nice and interesting...
Basically QARun treats each control on a form (dialog) as a key+element in an array - in the case of combo (list) boxes for example this is actually a multidimensional array with the first dimension being the combo box control name and the second dimension being the item position in the combo box.
From this we have in order:
- edit box with initial value set to dbname
- combo box with 3 options in the list
- check box to say whether we are to run tests with initial value set to "yes" (1) this run (ie: test the app or just enter data)
- combo box with another 3 options.
The names of the fields (eg: cboCodeSet) must match exactly the name of the appropriate field in the dialog editor.
Also, something I didn't realise till recently is that you need to make sure in the dialog editor that the height of the invisible line (bounding box) around any combo box is sufficient for all the items in the list to be shown.
If I have in my combo box
but the area of my combo box is set to:
Then there is only space for items 1-2 to be shown and item 3 won't appear in the combo box.
Instead I need:
This has the knock on effect that if I subsequently add more options to my combo box in the script I *must* increase the height of the combo box in the dialog.
Note that combo box bounding areas can overlap other controls - the overlap will only be evident when running the dialog at the point of selecting the option to populate the combo with.