Click or drag to resize

CGUI.iImportDatabase Method (String, String, String, Int32)

Create template to import an external database table.

Namespace:  Geosoft.Desktop.GXNet
Assembly:  geosoft.desktop.gxnet (in geosoft.desktop.gxnet.dll) Version: 2024.2.0.25
Syntax
public static int iImportDatabase(
	string name,
	string temp,
	ref string table,
	int table_size
)

public static int iImportDatabase(
	string name,
	string temp,
	ref string table,
	int table_size
)

Parameters

name
Type: System.String
External database file name
temp
Type: System.String
Template to make
table
Type: System.String
Name of table imported (returned)
table_size
Type: System.Int32
Size of table string

Return Value

Type: Int32
0 - OK -1 - Cancel
Remarks
This is used to select a single database table, and selected fields from that table. If the database is not Microsoft Access (type .mdb), an introductory dialog requests the file type. This function DOES NOT import the table itself, but creates an import template which may be used to import the table (see ImportDAO_DU).
See Also