I'm doing something wrong I'm sure... In a JScript that adds a new command, I've tried a few things to init a ScriptConfig property as an array:
initData.config.objOptions = ['A','B','C','D'];
...and
initData.config.objOptions = new Array();
initData.config.objOptions[0] = "";
initData.config.objOptions[1] = "";
initData.config.objOptions[2] = "";
initData.config.objOptions[3] = "";
...but all I ever see in the Configure dialog for the scripts' listing in Prefs is just a single line objOptions item to which I can assign a single value as if I had just declared it as a string. I'm not exactly sure how I expected to see the 'multi-line editor' behavior for the case you mentioned where the array is all strings, but I definitely didn't expect what I'm seeing.
What am I doing wrong and what should I expect to see in the Customize editor for script configuration options like this when 'properly' used as an array?
As an aside: I assume you implemented support for this property to be used as an array so that scripts could loop through a set of user configurable options rather than be restricted to only being able to examine individual properties explicitly by name.
If so, and depending on if I've misunderstood how to use this or not... is there any method by which you could allow the use of a VT_ARRAY type ScriptConfig. such that the Config editor for the script in Prefs would allow users to ADD additional values to the array for elements not explicitly initialized in OnInit? I could certainly pre-fill several placeholder elements as empty strings or something, and just skip past them in a loop if their length === 0. But having a more free-form ability would be pretty useful as well, and be ready for changing needs without having to edit the actual script code. The main use-case for such a feature would be to allow for future readiness of an unknown number of options (unknown at the time of writing the script that is) that would just be unwieldy to pass as arguments (if used in the implementation of a new Script Command)... Thoughts on this?