Sign in to follow this  
Followers 0
rockets

On one pc but not the other.

3 posts in this topic

#1 ·  Posted (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 by rockets

Share this post


Link to post
Share on other sites



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.

Share this post


Link to post
Share on other sites

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 :)

Share this post


Link to post
Share on other sites

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 account

Sign in

Already have an account? Sign in here.


Sign In Now
Sign in to follow this  
Followers 0