mIRC Home    About    Download    Register    News    Help

Print Thread
#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

#75047 13/03/04 08:53 AM
Joined: Dec 2002
Posts: 2,985
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.

#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

#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

#75050 13/03/04 07:03 PM
Joined: Feb 2003
Posts: 2,812
Hoopy frood
Offline
Hoopy frood
Joined: Feb 2003
Posts: 2,812
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!

Link Copied to Clipboard