Script error with the updated animated weather DX2 object.

When using the updated animated weather desktopX object, it periodically errors out
on line 129. Below is the portion of the script in question, and line 129 is:

xmlstripper = Mid(string, datastart, datalength)

Now, its been a while since i have done any programming, but it seems to me the error has to do with a discrepancy between the function declaration and the statement calling the function. It is declared with 2 variables, and the statement calling it has 3. I do not know anything about XML so am not sure if this is the cause or not. Anyone else gotten this error?

-------copied and pasted from the script-------
Function xmlstripper(param, string)
'msgbox "Param: " & param & " string: " & string
' Find the xml tag start in the string
datastart = InStr(string, param) + Len(param)
' find how long it is based on the closing tag
datalength = Instr(string, " ' strip out the data to return
xmlstripper = Mid(string, datastart, datalength)
End Function



Powered by SkinBrowser!
4,952 views 2 replies
Reply #1 Top
been doing this to me since the first one. Finally deleted it and put the xml weather on objectbar. I don't know enough about vbscript to tell you whats wrong with it, only that its been wrong for me for some time.
Reply #2 Top
Funny thing, a day later all the errors stopped. have not had one in over two days.
Maybe it was something with the xml feed itself causing problems. Seems to have corrected itself whatever the cause.



Powered by SkinBrowser!