rockets Posted July 21, 2011 Share Posted July 21, 2011 (edited) i keep getting this error on my laptop If $result[0] <> 0 Then If $result^ ERROR but not on my desktop pc(runs fine) , they are both 32 bit win7 . Edited July 21, 2011 by rockets Link to comment Share on other sites More sharing options...
smartee Posted July 22, 2011 Share Posted July 22, 2011 That can't be your entire script. There is probably a DllCall or StringSplit or similar before that line, simply add @error checking or an IsArray() test before trying to access $result as an array. Post your whole script if you want more specific help. Link to comment Share on other sites More sharing options...
enaiman Posted July 22, 2011 Share Posted July 22, 2011 Simply put: on your laptop, what should return an array ($result) is not returning one. The fact that both your machines have the same OS has little relevance if you are trying to read something specific to one of them and not the other. I can't be more specific but consider the following case: you try to read the files from a folder; the folder exists on your desktop but not on your laptop. ... or any other similar case. You need to debug your script, use MsgBox, ConsoleWrite, _arrayDisplay ... whatever suits you. SNMP_UDF ... for SNMPv1 and v2c so far, GetBulk and a new example script wannabe "Unbeatable" Tic-Tac-Toe Paper-Scissor-Rock ... try to beat it anyway :) Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now