This content has been marked as final. Show 4 replies
It's difficult to tell what's going wrong or where until you start some
basic debugging. The following might get you started - look to your
message window for output.
objFileio = VOID
The obtained sequence is:
-- <Xtra child "fileio" 2 41ae684>
It seems that I got an error after doing readFile(), -124, but I do not know what it means. I have been thinking that maybe I am trying to read before it is ready. Is there any Lingo Script function to wait sometime before executing readFile()?
-124 translates to "File is opened write-only" so need to open it
read-only (or read-write) (I can never remember what those numbers refer
to, and it's always frustrating having to look them up):
objFileio.openfile(The moviePath&"id.txt", 1)
Thank you very much!!
That was the problem, I had a confused manual in which 2 was supposed to be Read/write instead of 0...