Ext.TableDatabaseName()

Returns the database name of the specified table.

Function Signature

 string Ext.TableDatabaseName( table )

Parameters

Parameter Type Description

table

Variant

Specifies a table's display name in order to return the table's database name. If table is a non-numeric string, it is taken as the table's display name, such as "Issues". Otherwise, the parameter is converted to a number and taken as the table's ID. Use caution when using the display name because it can be changed in SBM Composer.

Return

Type Description

string

Returns the database name of the table if the display name exists. If not, an empty string is returned.

Technical Details

SBM ModScript version: 11.3.

Notes

This method can be used to return the database name of a table, which can be helpful when building SQL statements.

Related Topics

Extension Functions