mIRC Home    About    Download    Register    News    Help

Print Thread
how to tell if hash table already exists #9174 01/02/03 06:30 AM
Joined: Dec 2002
Posts: 204
K
keeker Offline OP
Fjord artisan
OP Offline
Fjord artisan
K
Joined: Dec 2002
Posts: 204
Is there a way to tell if a hash table already exists? Like if i make an mp3alias and it uses hash tables, is there a way i can detect if the hash table filelist is made and if not, then echo a message to the active window?
it probably has something to do with if statements right? any help would be appreciated



thanks keeker


keek: Scots - intr.v. keeked, keekˇing, keeks
To peek; peep.
Re: how to tell if hash table already exists #9175 01/02/03 06:42 AM
Joined: Dec 2002
Posts: 3,138
C
Collective Offline
Hoopy frood
Offline
Hoopy frood
C
Joined: Dec 2002
Posts: 3,138
if ( $hget(hashtablename) != $null ) { dostuff }

Re: how to tell if hash table already exists #9176 01/02/03 07:14 AM
Joined: Dec 2002
Posts: 204
K
keeker Offline OP
Fjord artisan
OP Offline
Fjord artisan
K
Joined: Dec 2002
Posts: 204
thanks collective smile just getting used to hash tables. now if i can just make $hfind work i will be in buisness smile


keek: Scots - intr.v. keeked, keekˇing, keeks
To peek; peep.
Re: how to tell if hash table already exists #9177 02/02/03 08:07 AM
Joined: Feb 2003
Posts: 2
S
SE7EN Offline
Bowl of petunias
Offline
Bowl of petunias
S
Joined: Feb 2003
Posts: 2
or:
if ($hget(tablename)) { laugh }


All my bugs belong to my STUPID GIRLFRIEND THAT WONT STFU AND LET ME THINK FOR 2 SECONDS!!!
Re: how to tell if hash table already exists #9178 02/02/03 11:05 AM
Joined: Dec 2002
Posts: 3,138
C
Collective Offline
Hoopy frood
Offline
Hoopy frood
C
Joined: Dec 2002
Posts: 3,138
If he renamed his hash table to $false it wouldn't work (maybe unlikely, but I really hate exceptions smile...maybe I'm obsessive...).

Re: how to tell if hash table already exists #9179 03/02/03 01:24 PM
Joined: Jan 2003
Posts: 16
D
DynaMup Offline
Pikka bird
Offline
Pikka bird
D
Joined: Jan 2003
Posts: 16
Far, far, far too obsessive wink


A poor life this, if full of care,
We have no time to stand and stare.