| CGUIiDatamineType Method |
Returns the type of a Datamine file.
Available since Oasis montaj version: 5.0.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.GXNetAssembly: geosoft.desktop.gxnet (in geosoft.desktop.gxnet.dll)
Notes
Often, a Datamine file can be opened a number of different ways
(e.g. as a string file or a as wireframe (point) file.
The following function checks to see if there is a choice to be made
between types supported by Geosoft for import. If not, it just returns
the original type "hint" from Datamine. If there is a choice, it puts up
a dialog with the choices for the user to pick from.
Do a bit-wise AND with the returned type to determine the file type
(or the type selected).
Currently supported overlapping types/choices:
dmString
dmWireframePoint
Syntax public static int iDatamineType(
string str1,
ref int i2
)
Public Shared Function iDatamineType (
str1 As String,
ByRef i2 As Integer
) As Integer
public:
static int iDatamineType(
String^ str1,
int% i2
)
static member iDatamineType :
str1 : string *
i2 : int byref -> int
Parameters
- str1
- Type: SystemString
File Name (for display purposes only) - i2
- Type: SystemInt32
Return Value
Type:
Int32
0 - OK
-1 - Cancel
See Also