mIRC Home    About    Download    Register    News    Help

Print Thread
#34615 07/07/03 11:15 AM
Joined: Mar 2003
Posts: 41
B
BORR Offline OP
Ameglian cow
OP Offline
Ameglian cow
B
Joined: Mar 2003
Posts: 41
How can I put a list like this:...

hey
ho
hai
HeY
hiho
haha
hehe

..into %list?

Bcause when I try 2 do that it doesnt seem 2 save the whole list. Only the first word. btw, all these items are seperated by an enter.

Thnx

Joined: May 2003
Posts: 730
S
Hoopy frood
Offline
Hoopy frood
S
Joined: May 2003
Posts: 730
it depends, where u stored that list ? is it a text file ?


Joined: May 2003
Posts: 2,265
P
Hoopy frood
Offline
Hoopy frood
P
Joined: May 2003
Posts: 2,265
alias blah {
.set %list hey
.set %list ho %list
.set %list hai %list
.set %list HeY %list
.set %list hiho %list
.set %list haha %list
.set %list hehe %list
}


new username: tidy_trax
Joined: Dec 2002
Posts: 2,962
S
Hoopy frood
Offline
Hoopy frood
S
Joined: Dec 2002
Posts: 2,962
Text variables will automatically end when they come across a carriage return or linefeed. You'll have to either strip them before you assign them to a variable, or assign them to multiple variables (%list.1, %list.2) or a hash table. It depends on how you plan to use the data.


Spelling mistakes, grammatical errors, and stupid comments are intentional.

Link Copied to Clipboard