The UK Home Automation Archive

Archive Home
Group Home
Search Archive


Advanced Search

The UKHA-ARCHIVE IS CEASING OPERATIONS 31 DEC 2024


[Message Prev][Message Next][Thread Prev][Thread Next][Message Index][Thread Index]

RE: Re: Error Message with Weather Script


  • Subject: RE: Re: Error Message with Weather Script
  • From: Ian Jeffery
  • Date: Thu, 25 Mar 2004 19:32:00 +0000

You are correct that the error is caused by instr returning 0. However the
problem is the
way they are redirecting the page, not the script itself.

-----Original Message-----
From: <a
href="/group/ukha_xpl/post?postID=lRWFZZWt1jk_DKJYW6IgANwZLabSvuvQdTUZyLZ_p27PBPxdndIHmZ287EjOuHv6HKOOVo2ixYJIiB-2I9K3riRcTeI">steve.cooper@u...</a>
To: <a
href="/group/ukha_xpl/post?postID=qWXiEplRWMXwqOeXN9fBaxkkaMwV7ThTNXxVTZNonH_h2hAhRxuI-s6QV1GLO8bcCOeBEIfT8AMDN_ecdzIJioK7">ukha_xpl@xxxxxxx</a>
Date: Thu, 25 Mar 2004 09:32:52 +0000
Subject: RE: [ukha_xpl] Re: Error Message with Weather Script

>
> I believe it's the standard error you get when you try and pass an
> instr
> function a 0 as a start parameter.
>
> Just had a quick look at the script and I think the fix may be to
> change
> all the instr functions so that they do a text compare rather than a
> binary
> compare as it looks like the site has changed some of it's html
markers
> from upper to lower case.
>
> To do this just add a fourth parameter of 1 to each instr function
>
> change s = InStr(s, Page, "<!-- WEATHER INFO -->")
> to s = InStr(s, Page, "<!-- WEATHER INFO -->", 1)
>
> I have tried this on a straight VBScript file (not in xplhal) and it
> without the change I get an error, with the change it works fine. I'll
> send tony a new version for his site.
>
> S.
>
>
>
>
_______________________________________________________________________
> ____
> The information contained in this message is confidential and may be
> legally privileged. If you are not the intended recipient, please do
> not
> read, copy or otherwise use it and do not disclose it to anyone else.
> Please notify the sender of the delivery error and then delete the
> message from your system.
> Any views or opinions expressed in this email are those of the author
> only.
> Communications will be monitored regularly to improve our service and
> for
> security and regulatory purposes.
> Thank you for your assistance.
>
_______________________________________________________________________
> ____
>
>
>
> ------------------------ Yahoo! Groups Sponsor
> ---------------------~-->
> Buy Ink Cartridges or Refill Kits for your HP, Epson, Canon or Lexmark
> Printer at MyInks.com. Free s/h on orders $50 or more to the US
&amp;
> Canada.
> <a href="http://www.c1tracking.com/l.asp?cid=5511";>http://www.c1tracking.com/l.asp?cid=5511</a>
> <a href="http://us.click.yahoo.com/mOAaAA/3exGAA/qnsNAA/h6uqlB/TM";>http://us.click.yahoo.com/mOAaAA/3exGAA/qnsNAA/h6uqlB/TM</a>
>
---------------------------------------------------------------------~-
> >
>
> xPL Links: <a href="http://www.xplproject.org.uk";>http://www.xplproject.org.uk</a>
<a href="http://www.xplhal.com";>http://www.xplhal.com</a>
> <a href="http://www.xpl.myby.co.uk";>http://www.xpl.myby.co.uk</a>
> To Post a Message: <a
href="/group/ukha_xpl/post?postID=qWXiEplRWMXwqOeXN9fBaxkkaMwV7ThTNXxVTZNonH_h2hAhRxuI-s6QV1GLO8bcCOeBEIfT8AMDN_ecdzIJioK7">ukha_xpl@xxxxxxx</a>
> To Subscribe: <a
href="/group/ukha_xpl/post?postID=fHbTQuC5wzzqivqo19NuXf74Pqes0KZCqNh7LCMxuYrc744L750p1bXXE1O1a6S6-a9ROXwdAfZfsEOkd1Q92We0lUqTQ43QRS6A">ukha_xpl-subscribe@xxxxxxx</a>
> To Unsubscribe: <a
href="/group/ukha_xpl/post?postID=uD4iM29gKpX0WuBKajR1UV0paEGNWVkHpkxDpGAZyqJ2YqYRuZz6bQ0zhjA7wC0lryHgCInM1ddnXVXW8sqUWzJ0LhdygHxw_x48KQ">ukha_xpl-unsubscribe@xxxxxxx</a>
> Yahoo! Groups Links
>
>
>
>






xPL Main Index | xPL Thread Index | xPL Home | Archives Home

Comments to the Webmaster are always welcomed, please use this contact form . Note that as this site is a mailing list archive, the Webmaster has no control over the contents of the messages. Comments about message content should be directed to the relevant mailing list.