Suggestion #186
inconsistency regarding pbEOF property
Status:
New
Priority:
Normal
Assignee:
-
Start date:
06/01/2021
Due date:
% Done:
0%
Description
inside package there is a note to not use pbEOF property anymore.. and use BinerayEndOfFile function instead.
But, There are some functions that still sets pbEOF, instead of setting the private structured member value for the file-handle array.
BinaryFileReadUChar
If (iBytesRead = 0 or iBytesRead <> iNumberOfBytes) Begin Set pbEOF to True
Shouldn't it be setting the bEndOfFile member from the array plsFile property ?
Struct structFile Handle hFilehandle String sFilename // Assigned filename in OEM format. Boolean bEndOfFile // True then the end of the binary file had been read. End_Struct
See also:
https://support.dataaccess.com/Forums/showthread.php?64903-cFileSystem-Lib&p=365377#post365377