mIRC Homepage
Posted By: DaRkCaSTLe1974 Replace text - 11/06/13 06:56 AM
lets say i have $hget(Table,SomeData) that returns abcde#1234
and i wanna set %sample to abcde#1234 but replacing the # with -
to make it become abcde-1234
how would I $replace that

nvm i figured it out $replace($hget(Table,SomeData).data,$chr(35),$chr(45))
smile
Posted By: westor Re: Replace text - 11/06/13 11:41 AM
Yes, your example will work

$replace($hget(Table,SomeData).data,$chr(35),$chr(45))

also use /help $replace for more help.
Posted By: DaRkCaSTLe1974 Re: Replace text - 11/06/13 03:10 PM
yes its working but ty for reply btw how do u get /help $replace to work on windows 7 it opens windows help and not mirc`s
Posted By: Tomao Re: Replace text - 11/06/13 07:19 PM
On any of the mIRC window, press the key F1 to brig up mirc's help file. Simply put $replace in the search box to go the topic. This is to assume you do not have the F1 key used for other functions. Or you can open the help file directly within mIRC's directory.
Posted By: Riamus2 Re: Replace text - 11/06/13 10:43 PM
As long as you have the .chm help file, it should work fine on Windows 7. The older versions of mIRC used a .hlp file that doesn't work as well in Windows 7.
© mIRC Discussion Forums