NUMBER Function (RecordRef)
Returns the table ID (number) of the table that contains the record that was referred to by the RecordRef.
The RecordRef that refers to the table in which you are interested.
In previous versions of Microsoft Dynamics NAV, if a RecordRef referred to a temporary table, then the table number value of the RecordRef was the run-time generated sequence ID, which is from the base value of 2000100000. You could use the table number to determine if a RecordRef referred to a temporary table. In Microsoft Dynamics NAV 2009, the table number value of a RecordRef always contains the ID of the originating physical table and not the run-time generated sequence ID. If you previously used the NUMBER Function (RECORDREF) to test for the sequence number and determine if the RecordRef was temporary, then you must use thein Microsoft Dynamics NAV 2009 instead.