Jump to content

Recommended Posts

Posted

B) Hi,

i want to can open a bmp file and to put the info in the one array.But when i try to open a file on this way:

$file=FileOpen("path to the picture",0)

if $file1=-1 then

msgbox(0,"ERROR","Unable to open the file")

exit

endif

Please if somebody can help me with this problem

thanks

Posted

B) Hi,

i want to can open a bmp file and to put the info in the one array.But when i try to open a file on this way:

$file=FileOpen("path to the picture",0)

if $file1=-1 then

msgbox(0,"ERROR","Unable to open the file")

exit

endif

Please if somebody can help me with this problem

thanks

What is the error you get.

This line "if $file1=-1 then" should read "if $file=-1 then"


Time you enjoyed wasting is not wasted time ......T.S. Elliot
Suspense is worse than disappointment................Robert Burns
God help the man who won't help himself, because no-one else will...........My Grandmother

Posted

What is the error you get.

This line "if $file1=-1 then" should read "if $file=-1 then"

The function FileOpen return a value -1 in the varible $file1 and the expression if execute

MsgBox(0,"ERROR","Unable to open file1")

Exit

Even i set a value on file1 to 0, ot be sure, but no result.Again can't open file.

Posted

Hi all,who try to help me.

Thanks for a help.

I have made a mistake - sorry

The script work completely correct.

just i have forgot to put the extension of the file.

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
×
×
  • Create New...