Count tables

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


Count tables Number

ParameterTypeDescription
This command does not require any parameters
Function resultNumberNumber of tables in the database

Description

Count tables returns the number of tables in the database. Tables are numbered in the order in which they are created.

Example

The following example builds an array, named asTables, with the names of tables defined in the database. This array can be used as a drop-down list (or tab control, scrollable area, and so on) to display the list of the tables, within a form:

   ARRAY STRING (31;asTables;Count tables) 
   For ($vlTable; 1; Size of array(asTables)) 
      asTables {$vlTable}:=Table name ($vlTable) 
   End for

See Also

Count fields, 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