Table name

4D - Documentation   Français   English   German   4th Dimension 2004, Command Theme List   4th Dimension 2004, Command Alphabetical List   4th Dimension 2004, Constant Theme List   Back   Previous   Next

version 3


Table name (tableNum | tablePtr) String

ParameterTypeDescription
tableNum | tablePtrNumber | PointerTable number or Table pointer
Function resultStringName of the table

Description

The Table name command returns the name of the table whose number of pointer you pass in tableNum or tablePtr.

Example

The following is an example of a generic method that displays the records of a table. The reference to the table is passed as a pointer to the table. The Table name command is used to include the name of the table in the title bar for the window:

      ` SHOW CURRENT SELECTION Project method
      ` SHOW CURRENT SELECTION ( Pointer )
      ` SHOW CURRENT SELECTION (->[Table])

   SET WINDOW TITLE("Records for "+Table name($1))  ` Sets the window title 
   DISPLAY SELECTION($1->)  ` Displays the selection

See Also

Count tables, Field name, Table.


4D - Documentation   Français   English   German   4th Dimension 2004, Command Theme List   4th Dimension 2004, Command Alphabetical List   4th Dimension 2004, Constant Theme List   Back   Previous   Next