Desktop X XMLweatherbg script error help

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.
990 views 2 replies
Reply #1 Top
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]
Reply #2 Top
Hey Will, I missed this back when you originally responded. Thanks for the reply and for the help!