Jump to content
Sign in to follow this  
sherkas

Subscript Used With Non-array Variable.

Recommended Posts

sherkas

$masterchange = IniReadSectionNames ( $file2 )

For $int = 0 To $masterchange[0] Step + 1

For some reason it gives error on the $masterchange[0]

I dont get it?

$file2, and master are local variables (not dimed).

Share this post


Link to post
Share on other sites
GaryFrost

$masterchange = IniReadSectionNames ( $file2 )

For $int = 0 To $masterchange[0] Step + 1

For some reason it gives error on the $masterchange[0]

I dont get it?

$file2, and master are local variables (not dimed).

might want to check the @error after the read

SciTE for AutoItDirections for Submitting Standard UDFs

 

Don't argue with an idiot; people watching may not be able to tell the difference.

 

Share this post


Link to post
Share on other sites
sherkas

$file2 = FileOpen("config.ini", 1)

$masterchange = IniReadSectionNames ( $file2 )

if @error = 1 then exit

Why wont that work?

It was true, the script was getting an error but how come?

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  

×