mIRC Home    About    Download    Register    News    Help

Print Thread
#242030 11/06/13 06:56 AM
Joined: May 2013
Posts: 26
D
Ameglian cow
OP Offline
Ameglian cow
D
Joined: May 2013
Posts: 26
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

Last edited by DaRkCaSTLe1974; 11/06/13 07:10 AM.
Joined: Dec 2008
Posts: 1,483
Hoopy frood
Offline
Hoopy frood
Joined: Dec 2008
Posts: 1,483
Yes, your example will work

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

also use /help $replace for more help.

westor #242033 11/06/13 03:10 PM
Joined: May 2013
Posts: 26
D
Ameglian cow
OP Offline
Ameglian cow
D
Joined: May 2013
Posts: 26
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

Joined: Jul 2007
Posts: 1,124
T
Hoopy frood
Offline
Hoopy frood
T
Joined: Jul 2007
Posts: 1,124
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.

Joined: Oct 2004
Posts: 8,061
R
Hoopy frood
Offline
Hoopy frood
R
Joined: Oct 2004
Posts: 8,061
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.


Link Copied to Clipboard