Click or drag to resize

CGUIIiImportDrillDatabaseODBC Method (String, String, String, Int32, CREG)

Generate a template file for importing drill holes from ODBC database data.

Namespace:  Geosoft.Desktop.GXNet
Assembly:  geosoft.desktop.gxnet (in geosoft.desktop.gxnet.dll) Version: 2024.2.0.25
Syntax
public static int IiImportDrillDatabaseODBC(
	ref string connect,
	ref string temp,
	ref string table,
	ref int type,
	CREG reg
)

public static int IiImportDrillDatabaseODBC(
	ref string connect,
	ref string temp,
	ref string table,
	ref int type,
	CREG reg
)

Parameters

connect
Type: SystemString
Connection string
temp
Type: SystemString
Template to make
table
Type: SystemString
Name of table
type
Type: SystemInt32
Type of import returned <define>DH_DATA</define>
reg
Type: GeoEngine.Core.GXNetCREG
Drill Hole Object REG handle

Return Value

Type: Int32
0 - OK -1 - Cancel
Remarks
If the input connection string is empty (""), then the ODBC connection dialogs will appear (e.g. to connect to a machine database) before the import wizard is run. The connect string used for this connection is then returned. This string can then be used on input to skip the ODBC connection dialogs and go straight to the Wholeplot import wizard. Because the name of the database is not necessarily known, the template name is created from the name of the table opened - e.g. "HOLELOCATION.i4".
See Also