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 Matt Diesel, 13 years ago

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
    ...
EndIf

This is pretty standard wording in the helpfile.

comment:2 by anonymous, 13 years ago

Thank you for the clarification.
I reread Documentation, context became clear.

please close this ticket.

comment:3 by guinness, 13 years ago

Resolution: No Bug
Status: newclosed

Modify Ticket

Action
as closed The ticket will remain with no owner.

Add Comment


E-mail address and name can be saved in the Preferences .
 
Note: See TracTickets for help on using tickets.