The above is not working ofcourse, so I was hoping that somebod ywould have a better idea...
Function blah
Pop $R0 ; a pointer to the buffer containing the array
Pop $R1 ; the total number of entries in $R1
StrCpy $Counter 1
loop1:
${If} $Counter <> $R1
Var /GLOBAL "Entry_$Counter"
StrCpy $Counter $Counter +1
Goto loop1
${Else}
Goto loop1end
${EndIf}
loop1end:
StrCpy $Counter 1
StrCpy $ArrayElements "w .$Entry_$Counter"
loop2:
${If} $Counter <> $R1
StrCpy $ArrayElements "$ArrayElements, w .$Entry_$Counter"
StrCpy $Counter $Counter +1
Goto loop2
${Else}
Goto loop2end
${EndIf}
loop2end:
System::Call '*$R0("$ArrayElements")' ; get the elements of the array to $Entry_$Counter variables
...
FunctionEnd
Thanks
CF