table.NAME_REAL_GET Function
Syntax
Table_Name as C = <TBL>.NAME_REAL_GET()
Description
Returns the Table_Name of the table referenced by <TBL>.
The <TBL>.NAME_REAL_GET() method returns the Table_Name of the table referenced by <TBL>. The returned name will not include the drive, path or extension (.dbf) of the referenced table.
Contrast this method with the <TBL>.NAME_GET() method which returns an Alias. An Alias is the same as the table name for the first open instance of a table. However, if more than one instance of a table is opened, Alpha Anywhere will automatically assign each instance a unique Alias.
Example
Type the following commands in the Interactive window.
dim tbl_first as P
dim tbl_second as P
tbl_first = table.open("d:\a5\customer.dbf")
tbl_second = table.open("d:\a5\customer.dbf")
'This will show "customer" as the alias
? tbl_first.name_get()
'This will show "customer1" as the alias
? tbl_second.name_get()
'This will show "customer" as the name
? tbl_second.name_real_get()
tbl_first.close()
tbl_second.close()See Also