Desktop X XMLweatherbg script error help

Saturday, August 14, 2004 by BlueDev | Discussion: WinCustomize Talk

Hey all, I have been lately getting the following error dialog popping up:

There has been a script error in object "XML weatherbg".
To correct the error, click "Disable and Edit" below.

Type mismatch: '[string: "-"]'
Line: 180
Code:
(not available)

Any help about what this means or what direction to head in would be great. Obviously I opened the script and looked at line 180, but it doesn't mean anything to me. Thanks.
Will Rose
Reply #1 Sunday, August 15, 2004 11:15 PM
This is occurring because the weather object you are using is not able to properly parse some of the XML data that weather.com is returning. This is probably happening in the Function Iconname() section. To put a band-aid on the problem, as the first line of that function, add immediately below the "Function Iconname()" line:

On Error Resume Next

This will not make your object completely correct, but it will prevent the error message from occurring. (If necessary, check the Developer's guide and other DesktopX docs for info on how to edit scripts.)

Alternatively, I'll be releasing a nifty new weather object this week that will of course not have that problem!

Cheers,

Will
[Message Edited]
BlueDev
Reply #2 Wednesday, August 18, 2004 11:33 PM
Hey Will, I missed this back when you originally responded. Thanks for the reply and for the help!

Please login to comment and/or vote for this skin.

Welcome Guest! Please take the time to register with us.
There are many great features available to you once you register, including:

  • Richer content, access to many features that are disabled for guests like commenting on the forums and downloading skins.
  • Access to a great community, with a massive database of many, many areas of interest.
  • Access to contests & subscription offers like exclusive emails.
  • It's simple, and FREE!



web-wc01