mIRC Homepage
Posted By: xyz removing a string from string - 29/04/04 04:13 PM
Hell everyone,
is there a command to use when I would like to remove everything from a string from position A to position B?
For example: c:\foo\bar.txt - remove 7-14 and 1-3 = foo
and so on..

Tried to lookup this stuff with search here but couldn't find suitable stuff, maybe I just don't know the right terms to use when searching.

Thanks, peace.
Posted By: tidy_trax Re: removing a string from string - 29/04/04 04:22 PM
$mid(c:\foo\bar.txt,4,3) will get foo.

you could also use: $gettok(c:\foo\bar.txt,2,$asc(\))
Posted By: xyz Re: removing a string from string - 29/04/04 08:36 PM
Thanks dude!
Posted By: Wolfie Re: removing a string from string - 29/04/04 08:42 PM
What exactly are you trying to do? $mid is useful, however, depending on what you are trying to do, there might be other options that will do the work for you where you might be doing it the long way, such as directory/file parsing.
© mIRC Discussion Forums