TFirstID()

TRFirstID(a;b), TRFirstID(a;b;c;d), TRFirstID(a;b;c;d;1) and TRFirstID(a;b;0;0;0;c) has the same functionality as TFirst() but returns the ID of the result that holds the first time.