mIRC Home    About    Download    Register    News    Help

Print Thread
$remtok and $deltok #75046 13/03/04 08:50 AM
Joined: Mar 2004
Posts: 12
W
Want Offline OP
Pikka bird
OP Offline
Pikka bird
W
Joined: Mar 2004
Posts: 12
If $remtok and $deltok do the same thing why have them both?

Why dont you make it so one of them deleats the number specified and the other deleat the text specified? confused

Re: $remtok and $deltok #75047 13/03/04 08:53 AM
Joined: Dec 2002
Posts: 2,985
Watchdog Offline
Hoopy frood
Offline
Hoopy frood
Joined: Dec 2002
Posts: 2,985
In $deltok you nominate the number of the token to remove. In $remtok you nominate the token itself to be removed. You do achieve the same outcome but a slightly different way.

Re: $remtok and $deltok #75048 13/03/04 08:59 AM
Joined: Mar 2004
Posts: 12
W
Want Offline OP
Pikka bird
OP Offline
Pikka bird
W
Joined: Mar 2004
Posts: 12
is there a way to deleat from a token specifying a text?
it would make sorted dialogs much easier

Re: $remtok and $deltok #75049 13/03/04 09:05 AM
Joined: Mar 2004
Posts: 12
W
Want Offline OP
Pikka bird
OP Offline
Pikka bird
W
Joined: Mar 2004
Posts: 12
nevermind i just need to add the tokens with $sorttok

Re: $remtok and $deltok #75050 13/03/04 07:03 PM
Joined: Feb 2003
Posts: 2,661
Raccoon Offline
Hoopy frood
Offline
Hoopy frood
Joined: Feb 2003
Posts: 2,661
is there a way to deleat from a token specifying a text?

$remtok(%string,text,1,46)

example:
var %string = b.a.c.d.a.e
var %string = $remtok(%string,a,1,46)
%string == b.c.d.a.e

The first 'a' token is removed.


Well. At least I won lunch.
Good philosophy, see good in bad, I like!