Click or drag to resize
CGUIIiImportDrillDatabaseODBC Method (CGXNETCore, String, Int32, String, Int32, String, Int32, Int32, CREG)
Generate a template file for importing drill holes from ODBC database data.

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
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".
Syntax
public static int IiImportDrillDatabaseODBC(
	CGXNETCore gxNetShared,
	ref string connect,
	int connect_size,
	ref string temp,
	int temp_size,
	ref string table,
	int table_size,
	ref int type,
	CREG reg
)

Parameters

gxNetShared
Type: GeoEngine.Core.GXNetXCGXNETCore
A shared CGXNETCore
connect
Type: SystemString
Connection string
connect_size
Type: SystemInt32
Size of connection string returned
temp
Type: SystemString
Template to make
temp_size
Type: SystemInt32
Size of template string returned
table
Type: SystemString
Name of table
table_size
Type: SystemInt32
Size of table name string
type
Type: SystemInt32
Type of import returned <define>DH_DATA</define>
reg
Type: GeoEngine.Core.GXNetXCREG
Drill Hole Object REG handle

Return Value

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