Archive: arrays


arrays
hi,

sorry for a newbee question:
is there a possibiltity to define string arrays?

greetings,
adrian


Unfortunately you can't in NSIS. It would be a very nice feature though...

The only way to 'simulate' an array is to use an INI file (using WriteINIStr and ReadINIStr)

E.g.
[Array]
0=blah
1=bfhg
etc

-Stu


dude,

> The only way to 'simulate' an array is to use an INI file (using WriteINIStr and ReadINIStr)

yes, works fine. thanx.

hm, i have needed the arrays after a half of hour of working with nsis. strange, they are not a part of it yet...

greetings,
josiph


i developed a solution using csv-data and the stack. it's possible to enter a list as csv-data (comma separated), and work with it e.g. in loops.
the csv parsing function is in the archive, link in my sig.
the complete solution still lies on my harddisk, don't know, if anyone ever will need to use it...