Click or drag to resize
CGUIiImportDatabase Method (CGXNETCore, String, String, String, Int32)
Create template to import an external database table.

Available since Oasis montaj version: 5.0
License: Available to anyone with an Oasis Montaj license.  
Limitations: May not be available if running outside of a Oasis Montaj or from a command line program.  

Namespace: Geosoft.Desktop.GXNetX
Assembly: geosoft.desktop.gxnetx (in geosoft.desktop.gxnetx.dll)
Notes
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).
Syntax
public static int iImportDatabase(
	CGXNETCore gxNetShared,
	string name,
	string temp,
	ref string table,
	int table_size
)

Parameters

gxNetShared
Type: GeoEngine.Core.GXNetXCGXNETCore
A shared CGXNETCore
name
Type: SystemString
External database file name
temp
Type: SystemString
Template to make
table
Type: SystemString
Name of table imported (returned)
table_size
Type: SystemInt32
Size of table string

Return Value

Type: Int32
0 - OK -1 - Cancel
See Also