Old 17th December 2004, 09:25   #1
josiph
Junior Member
 
Join Date: Dec 2004
Posts: 3
Unhappy arrays

hi,

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

greetings,
adrian
josiph is offline   Reply With Quote
Old 17th December 2004, 09:57   #2
Afrow UK
Moderator
 
Afrow UK's Avatar
 
Join Date: Nov 2002
Location: Surrey, England
Posts: 8,434
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
Afrow UK is offline   Reply With Quote
Old 17th December 2004, 13:48   #3
josiph
Junior Member
 
Join Date: Dec 2004
Posts: 3
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
josiph is offline   Reply With Quote
Old 17th December 2004, 15:15   #4
Comm@nder21
Major Dude
 
Join Date: Jul 2003
Location: germany, b-w
Posts: 734
Send a message via ICQ to Comm@nder21
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...
Comm@nder21 is offline   Reply With Quote
Reply
Go Back   Winamp & Shoutcast Forums > Developer Center > NSIS Discussion

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump