mIRC Home    About    Download    Register    News    Help

Print Thread
Joined: Jun 2014
Posts: 2
D
disgust Offline OP
Bowl of petunias
OP Offline
Bowl of petunias
D
Joined: Jun 2014
Posts: 2
i'm writing a script that has a list of variables, and i'll frequently need to go through them all to check if they've occured before

is the best way to do this to use a separate variable for each? one variable that's comma separated? a separate file list?

Joined: Jan 2004
Posts: 1,358
L
Hoopy frood
Offline
Hoopy frood
L
Joined: Jan 2004
Posts: 1,358
/help hash tables

Joined: Jun 2014
Posts: 2
D
disgust Offline OP
Bowl of petunias
OP Offline
Bowl of petunias
D
Joined: Jun 2014
Posts: 2
the fact that they're temporary/not on disk doesn't seem appropriate in this case frown what would i use if i need them to be more permanent?

Joined: Jan 2004
Posts: 1,358
L
Hoopy frood
Offline
Hoopy frood
L
Joined: Jan 2004
Posts: 1,358
You can save the hash tables as needed, but other than that your only built in options are ini files (you can save and load hash tables as ini files) and global variables.


Link Copied to Clipboard