Re: Why can't I Unlock the Custom Lock ?


[ Follow Ups ] [ BasicCard User Forum ]

Posted by zeitcontrol (217.87.10.154) on July 05, 2006 at 09:25:29:

In Reply to: Why can't I Unlock the Custom Lock ? posted by vutaviva on July 04, 2006 at 14:47:32:

The unlock operation works as expected, but you have to reset FileError variable to 0 (feFileOK) before performing another file operation. Reason is: FileError is (on purpose) never reset to 0 (feFileOK) if it contains an error value (not equal to 0).

So you should change your code as follows:
---
FileError=feFileOK
filenum = Open "@:\A" For Input Access Read
If FileError <> feFileOK Then


Follow Ups:


[ Follow Ups ] [ BasicCard User Forum ]