OP Get all tablenames

4D - Documentation   Français   English   German   4D Open for 4D, Command Theme List   4D Open for 4D, Command Alphabetical List   Back   Previous   Next

version 1.5


OP Get all tablenames (connectionID; tableNames) Longint

ParameterTypeDescription
connectionIDLongintConnection ID with target server
tableNamesArrayArray of table names in the database
Function resultLongintError code result for the function

Description

OP Get all tablenames returns the names of all the tables in the 4D Server database in the tableNames array, which can be of type String or Text.

Error Codes

If the function OP Get all tablenames executes successfully, it returns 0. Otherwise, this function returns one of the following errors:

Error CodeDescription
-108Not enough memory to perform this operation.
10128The 4D Open for 4th Dimension package has not been initialized.
10135Invalid parameter type.
10136The connection does not exist.
10154This command cannot be executed right now.

Example

This example fills the aFiles array with all the filenames in the database. The filenames are then displayed to the user in a dialog box.

   ARRAY STRING(15;aFiles;0)
   $ErrCode:=OP Get all tablenames (vConnectID;aFiles)

   CenterWindow (150;191)
   DIALOG([Dialogs];"Show Files")
   CLOSE WINDOW

   If (aFiles>0)
      `… user selected a file
      `… perfom operation on selected file
   End if 

See Also

OP Get one tablename, Table name.


4D - Documentation   Français   English   German   4D Open for 4D, Command Theme List   4D Open for 4D, Command Alphabetical List   Back   Previous   Next