Click or drag to resize
CGUIIiImportDrillDatabaseODBC Method (CGXNETCore, String, String, String, 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,
	ref string temp,
	ref string table,
	ref int type,
	CREG reg
)

Parameters

gxNetShared
Type: GeoEngine.Core.GXNetXCGXNETCore
A shared CGXNETCore
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.GXNetXCREG
Drill Hole Object REG handle

Return Value

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