mIRC Homepage
Posted By: killerbug123 Taking characters out of text - 27/06/04 03:07 PM
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
Posted By: tidy_trax Re: Taking characters out of text - 27/06/04 03:13 PM
set %var $remove(the,t)
set %var $right(the,-1)
set %var $right(the,2)
set %var $mid(the,2)
Posted By: killerbug123 Re: Taking characters out of text - 27/06/04 03:15 PM
ah i see now...thanks for the quick reply laugh
Posted By: killerbug123 Re: Taking characters out of text - 27/06/04 04:32 PM
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 
Posted By: tsoglanos Re: Taking characters out of text - 27/06/04 04:58 PM
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
Posted By: killerbug123 Re: Taking characters out of text - 27/06/04 06:00 PM
perfect, exactly what i needed...thx cool
© mIRC Discussion Forums