mIRC Home    About    Download    Register    News    Help

Print Thread
$blah(x) and $blah(x).somthing << how do i detect? #102515
09/11/04 10:02 PM
09/11/04 10:02 PM
Joined: Sep 2003
Posts: 4,230
D
DaveC Offline OP
Hoopy frood
DaveC  Offline OP
Hoopy frood
D

Joined: Sep 2003
Posts: 4,230
ok tried search, couldnt think of the right words to search on frown

Anyway.

I want to create some identifier aliases such as
$blah(x,y,z).first
$blah(x,y,z).last
$blah(x,y,z).fredflinstone etc etc

how do i detect which one i called?

PS If u know its not possable just say so, please dont tell me, oh just put them in as a parameter, i know i can do that, but its a patch on an actual identifier
ie: im replacing say $hget(name/N, N).item with $newhget(name/N, N).item
I want to be able to sweep code with a search and replace to implement this, example 'find "$hget(" replace with "$newhget$(" and im done.

Re: $blah(x) and $blah(x).somthing << how do i det #102516
09/11/04 10:52 PM
09/11/04 10:52 PM
Joined: Jan 2003
Posts: 53
Z
Zonk Offline
Babel fish
Zonk  Offline
Babel fish
Z

Joined: Jan 2003
Posts: 53
you might want to take a look at $prop
you can check if ($prop == fredflinestone) e.g.

Re: $blah(x) and $blah(x).somthing << how do i det #102517
10/11/04 09:21 AM
10/11/04 09:21 AM
Joined: Sep 2003
Posts: 4,230
D
DaveC Offline OP
Hoopy frood
DaveC  Offline OP
Hoopy frood
D

Joined: Sep 2003
Posts: 4,230
ho hum it all becomes so plainly there in the help file as soon as someone tells you the thing to use smile Thanks for the heads up.