Modify

Opened 11 years ago

Closed 11 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 Changed 11 years ago by Mat

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 Changed 11 years ago by anonymous

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

please close this ticket.

comment:3 Changed 11 years ago by guinness

  • Resolution set to No Bug
  • Status changed from new to closed

Guidelines for posting comments:

  • You cannot re-open a ticket but you may still leave a comment if you have additional information to add.
  • In-depth discussions should take place on the forum.

For more information see the full version of the ticket guidelines here.

Add Comment

Modify Ticket

Action
as closed The ticket will remain with no owner.
Author


E-mail address and user name can be saved in the Preferences.

 
Note: See TracTickets for help on using tickets.