Basically, I currently have an array (using nsArray) with some key/values e.g.
Then I would do something like this to foreach through it and apply each value to an nsDialog dropdownlist:
nsArray::SetList MyArray1 /key=key1 "val 1" /key=key2"some val 2" /key=key5949 "another value" etc
My problem is, I want to then use:
${ForEachIn} MyArray1 $R0 $R1
${NSD_CB_AddString} $DropDownList"$R1"
${Next}
in the foreach loop and have each drop list have their own itemdatavalue related to the key in the array, but I also need to have an indexer of some sort so i can apply each itemdatavalue accordingly.
SendMessage $DropDownList${CB_SETITEMDATA} $drop_list_index $itemdatavalue
I am really struggling on thinking of a way of accomplishing this, and I have even looked at using the loglib 'for' loop, but I wasn't having much luck.
Any help would be greatly appreciated.