Jump to content
Sign in to follow this  
Dirk Diggler

is a bug? FileOpen don't set @error

Recommended Posts

Dirk Diggler

Using autoit 3.2.0.1 run this script with any string - @error is equal 0 even if file not exist!

$in=FileOpen($cmdline[1],0)

MsgBox(0,'',@error)

Share this post


Link to post
Share on other sites
GaryFrost

Using autoit 3.2.0.1 run this script with any string - @error is equal 0 even if file not exist!

it says it returns -1 not sets @error try:

$in=FileOpen($cmdline[1],0)
MsgBox(0,'',$in)

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
Dirk Diggler

oops. sorry. my fault. please kill the topic.

Edited by Dirk Diggler

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.