TLastID()

TLastID(a;b), TLastID(a;b;c;d), TLastID(a;b;c;d;1) and TLastID(a;b;0;0;0;c)  have the same functionality as TLast() but return the ID of the result that holds the last time.

See TLast() for examples of using this.