Jump to content
Sign in to follow this  
rockets

On one pc but not the other.

Recommended Posts

rockets

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
smartee

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
enaiman

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  

×

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.