RecordRef Help (how to get the TableNumber ?)

Hye people, when I work with the datatype RecordRef I have to do the “OpenTable” always using the Table Nº… this is correct but we think is easier to work with TableNames than with TableNumbers… In CFRONT exists the posibility to open a table using de TableName doing something like this: CF.OpenTable(MyCFTableRef,CF.TableNo(MyTableName)) Do you know if is possible to do this operation with the RecordRef data type? I mean to get the Table Number from the Table Name… Thanks for your help friends!!

Aren’t you forgetting about the scope statements? - DATABASE::Customer - DATABASE::“Cust. Ledger Entry” - etc. I’m not sure if it’s in fact as easy as this or if I misunderstood your question.

You can use the fields table to find the table name, but as with Nelson I’m not sure if this is what your looking for.