Page 1 of 1 1
Topic Options
#120524 - 2004-06-02 07:47 PM Problems with SUS Upgrade Script
jeremywright Offline
Fresh Scripter

Registered: 2004-04-21
Posts: 20
Loc: Canada
I'm using this script: http://www.kixtart.org/ubbthreads/showflat.php?Cat=&Board=UBB1&Number=114065&Forum=All_Forums&Words=comnetview%28%29%3Bnetview2%28%24domain%2C1%29&Match=Entire%20Phrase&Searchpage=0&Limit=25&Old=allposts&Main=114065&Search=true#Post114065

And it works really, really well. The problem is that on roughly 1 in 100 computers it fails out with this error:

Quote:

ERROR : invalid method/function call: missing comma!
Script: Z:\susupgrade.kix
Line : 32




Line 32 is:

Code:
$oper = Left($os[1],5)



There doesn't seem to be anything wrong with this code (to me), especially since it works for (literally) thousands of other PC's...

Top
#120525 - 2004-06-03 03:33 PM Re: Problems with SUS Upgrade Script
Chris S. Offline
MM club member
*****

Registered: 2002-03-18
Posts: 2368
Loc: Earth
I would guess that the OSID function is not returning any information, thus your variable ($os) is not an array, but is empty.

Validate the code by checking the VarType of $os...

Code:

If VarType($os) & 8192
; VarType is an array...
EndIf


Top
Page 1 of 1 1


Moderator:  Jochen, Allen, Radimus, Glenn Barnas, ShaneEP, Ruud van Velsen, Arend_, Mart 
Hop to:
Shout Box

Who's Online
0 registered and 302 anonymous users online.
Newest Members
Sir_Barrington, batdk82, StuTheCoder, M_Moore, BeeEm
17886 Registered Users

Generated in 0.049 seconds in which 0.022 seconds were spent on a total of 12 queries. Zlib compression enabled.

Search the board with:
superb Board Search
or try with google:
Google
Web kixtart.org