version 1.5
OP Get all tablenames (connectionID; tableNames) Longint
Parameter | Type | Description | |
connectionID | Longint | Connection ID with target server | |
tableNames | Array | Array of table names in the database | |
Function result | Longint | Error 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 Code | Description |
-108 | Not enough memory to perform this operation. |
10128 | The 4D Open for 4th Dimension package has not been initialized. |
10135 | Invalid parameter type. |
10136 | The connection does not exist. |
10154 | This 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.