mIRC Homepage

space in socket

Posted By: SpaceBoy

space in socket - 08/05/04 09:25 AM

Hi - I have a script to retrive a line from a website - but because the bit of html I'm using to identify the line has a space in it, I think that is why it's not working...

if (<span > isin %newstemp) {

It's : <span > which has the space. Is there a way to replace the space using $chr or something so that the script recognises the space? It's the only unique piece of html attached to the info I want so I have to use it...

Thanks in advance for any help...
=)
Posted By: Iori

Re: space in socket - 08/05/04 10:21 AM

How about
  • if *<span >* iswm %newstemp { ... }
Posted By: SpaceBoy

Re: space in socket - 09/05/04 03:58 AM

thanks - will give it a try =)
Posted By: SpaceBoy

Re: space in socket - 09/05/04 07:30 AM

no luck with that, but I tried:

if (<span $+ $chr(32) $+ > isin %newstemp) {

and it worked.
Thanks =)
© 2020 mIRC Discussion Forums