Script error with the updated animated weather DX2 object.

Thursday, November 13, 2003 by pyrogator | Discussion: Stardock Software

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!
kongit
Reply #1 Friday, November 14, 2003 10:39 AM
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.
pyrogator
Reply #2 Sunday, November 16, 2003 5:15 AM
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!

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