mIRC Home    About    Download    Register    News    Help

Print Thread
Joined: Jun 2004
Posts: 4
K
Self-satisified door
OP Offline
Self-satisified door
K
Joined: Jun 2004
Posts: 4
Ok, lets say for example i have a word like "The" and i just want to take the "he" from it and put it in a variable....how would i do this?
thanks

Joined: Nov 2003
Posts: 2,327
T
Hoopy frood
Offline
Hoopy frood
T
Joined: Nov 2003
Posts: 2,327
set %var $remove(the,t)
set %var $right(the,-1)
set %var $right(the,2)
set %var $mid(the,2)


New username: hixxy
Joined: Jun 2004
Posts: 4
K
Self-satisified door
OP Offline
Self-satisified door
K
Joined: Jun 2004
Posts: 4
ah i see now...thanks for the quick reply laugh

Joined: Jun 2004
Posts: 4
K
Self-satisified door
OP Offline
Self-satisified door
K
Joined: Jun 2004
Posts: 4
How come when i use this code it only writes on line 1 of the file?
Code:
//write -l$mid(12345,3,2) test.txt this is a test 

Last edited by killerbug123; 27/06/04 04:35 PM.
Joined: Mar 2004
Posts: 130
T
Vogon poet
Offline
Vogon poet
T
Joined: Mar 2004
Posts: 130
Normal it sould be

//write -l $+ $mid(12345,3,2) test1.txt this is a test , if you want to write to line 34, of course line 34 must exist else only one line is add to test.txt

Joined: Jun 2004
Posts: 4
K
Self-satisified door
OP Offline
Self-satisified door
K
Joined: Jun 2004
Posts: 4
perfect, exactly what i needed...thx cool


Link Copied to Clipboard