| CGUIiImportTemplateSQL Method (CGXNETCore, IWin32Window, String, String, String, String) |
Create template to import an external database table; provide query.
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.GXNetXAssembly: geosoft.desktop.gxnetx (in geosoft.desktop.gxnetx.dll)
Notes
This is similar to iImportDatabaseSQL_GUI, but dispenses with
the dialog offering a selection of queries. Instead, the
user supplies the query as a string.
This function DOES NOT import the table itself, but
creates an import template which may be used to import
the data (see ImportDAO_DU).
Syntax public static int iImportTemplateSQL(
CGXNETCore gxNetShared,
IWin32Window owner,
string name,
string temp,
string sql,
string line
)
Public Shared Function iImportTemplateSQL (
gxNetShared As CGXNETCore,
owner As IWin32Window,
name As String,
temp As String,
sql As String,
line As String
) As Integer
public:
static int iImportTemplateSQL(
CGXNETCore^ gxNetShared,
IWin32Window^ owner,
String^ name,
String^ temp,
String^ sql,
String^ line
)
static member iImportTemplateSQL :
gxNetShared : CGXNETCore *
owner : IWin32Window *
name : string *
temp : string *
sql : string *
line : string -> int
Parameters
- gxNetShared
- Type: GeoEngine.Core.GXNetXCGXNETCore
A shared CGXNETCore - owner
- Type: System.Windows.FormsIWin32Window
The IWin32Window the message box will display in front of. - name
- Type: SystemString
External database file name - temp
- Type: SystemString
Import template to make - sql
- Type: SystemString
SQL selection query to run on database - line
- Type: SystemString
Name of Oasis table to create
Return Value
Type:
Int32
0 - OK
-1 Cancel
terminates on error
See Also