Note
Access to this page requires authorization. You can try signing in or changing directories.
Access to this page requires authorization. You can try changing directories.
Retrieves the name of the table.
Syntax
public str name([DbBackend db, boolean pseudoname])
Run On
Called
Parameters
- db
Type: DbBackend Enumeration
A DbBackend system enumeration value that specifies the type of name to return; optional. This can be either DbBackend::Native for the native name of the table or DbBackend::Sql for the SQL name of the table. The default value is DbBackend::Native.
- pseudoname
Type: boolean
A Boolean value that indicates whether a pseudo name is returned; optional.
Return Value
Type: str
The name of the table.
Remarks
If the table name is longer than 30 characters, the native name and SQL name of the table do not match.
Examples
The following example shows the retrieval of the name of a table.
DictTable dt;
dt = new DictTable(1); // 1 == tablenum(CustTable)
if (dt)
{
print(strfmt("The table name is %1.", dt.name()));
}