S4y0n4r4 Posted November 17, 2005 Share Posted November 17, 2005 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 Link to comment Share on other sites More sharing options...
BigDod Posted November 17, 2005 Share Posted November 17, 2005 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") exitendifPlease if somebody can help me with this problemthanksWhat 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 Link to comment Share on other sites More sharing options...
S4y0n4r4 Posted November 18, 2005 Author Share Posted November 18, 2005 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")ExitEven i set a value on file1 to 0, ot be sure, but no result.Again can't open file. Link to comment Share on other sites More sharing options...
w0uter Posted November 18, 2005 Share Posted November 18, 2005 $file=FileOpen("path to the picture",0)if $file1=-1 thenTHEY DIFFER ! My UDF's:;mem stuff_Mem;ftp stuff_FTP ( OLD );inet stuff_INetGetSource ( OLD )_INetGetImage _INetBrowse ( Collection )_EncodeUrl_NetStat_Google;random stuff_iPixelSearch_DiceRoll Link to comment Share on other sites More sharing options...
S4y0n4r4 Posted November 21, 2005 Author Share Posted November 21, 2005 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. Link to comment Share on other sites More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now