Modify ↓
Opened 13 years ago
Closed 13 years ago
#2414 closed Bug (No Bug)
FileGetPos - Return Value - not complete list of @error conditions
| Reported by: | mlipok | Owned by: | |
|---|---|---|---|
| Milestone: | Component: | Documentation | |
| Version: | 3.3.9.18 | Severity: | None |
| Keywords: | Cc: |
Description
in FileGetPos
in section Return Value
Success: Returns the position offset from the beginning of the file (First index is 0). Failure: Returns 0 and sets @error.
in Remarks
Failure returns 0 but 0 is also a valid file position so check @error to determine error conditions.
Can you make a list of possible values for the @error, as in this description, there is no set list at all.
Attachments (0)
Change History (3)
comment:1 by , 13 years ago
comment:2 by , 13 years ago
Thank you for the clarification.
I reread Documentation, context became clear.
please close this ticket.
comment:3 by , 13 years ago
| Resolution: | → No Bug |
|---|---|
| Status: | new → closed |
Note:
See TracTickets
for help on using tickets.

Usually when the docs say that, they mean that @error is set to something non-zero. There are no specific error codes.
In order to check errors you should just use:
FileGetPos(...) If @error Then ... EndIfThis is pretty standard wording in the helpfile.