IsSameRowID
See Also: RowId, RowId Helper Functions
Purpose
Used to determine if two RowId values are the same.
Return Type
Syntax
(IsSameRowID({RowId}, {RowId}))
Where:
- {RowId} is a value of type RowId
Example
Function RefindLastRecord returns Boolean
RowId riCustomer
Boolean bFound
Get priLastRow to riCustomer // the RowId record we want to refind
// only refind the record if the current record's RowId is different
If not (IsSameRowId(GetRowId(Customer.File_Number), riCustomer)) begin
Move (FindByRowID(Customer.File_Number, riCustomer)) to bFound
End
Function_Return bFound
End_Function // RefindLastRecord
Notes
IsSameRowID returns true if the two RowIDs passed are the same. This function can be used to determine if a row has changed. It can also be used to optimize row finding by not refinding a row if it is already loaded.