Script error with the updated animated weather DX2 object.
from
WinCustomize Forums
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
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