User Tools

Site Tools


position_return_the_current_record_position_.htm
Navigation:  ABC Library Reference > FileManager > FileManager Methods >====== Position (return the current record position) C6H0009.jpg ====== Previous pageReturn to chapter overviewNext page

Position

blk2blue.jpg

The Position method returns the unique position of the current record.

The TryReget method retrieves a record based on the value returned by Position.

Implementation:

Position returns the POSITION of the primary key if there is one; otherwise it returns the file POSITION. See the Language Reference for more information on POSITION.

Return Data Type:     STRING

Example:

Hold = SELF.Position()

PUT( SELF.File )

CASE ERRORCODE()

OF NoError

OF RecordChangedErr

 SELF.SetError(Msg:ConcurrencyFailedFromForm)

 SELF.Throw

 WATCH( SELF.File )

 SELF.TryReget(Hold)

ELSE

 SELF.SetError(Msg:PutFailed)

 RETURN SELF.Throw()

END

See Also:     TryReget

position_return_the_current_record_position_.htm.txt · Last modified: 2021/04/15 15:57 by 127.0.0.1