![](../icons/Help.png) | CGUIIiDatFileForm Method (CGXNETCore, IWin32Window, String, String, String, Int32, Int32, Int32) |
Grid and Image file Open/Save Form for Multiple/Single file selections
Available since Oasis montaj version: 5.0
Limitations: May not be available if running outside of a Oasis Montaj or from a command line program.
License: Available to anyone.
Namespace: Geosoft.Desktop.GXNetXAssembly: geosoft.desktop.gxnetx (in geosoft.desktop.gxnetx.dll)
Notes
Remember to make the string size big enough for multiple file
selections. In the case of multiple selections the names will be separated
by a semicolon and only the first file will contain the full path.
When using the multiple flag on any of these functions please be aware that
the string returned will be in the format:
drive:\path1\path2\name.grid|name2.grid|name3.grid(QUALIFIERS)
All grids are required to be of the same type.
Syntaxpublic static int IiDatFileForm(
CGXNETCore gxNetShared,
IWin32Window owner,
string title,
string default,
ref string psz_file_path,
int type,
int validation_type,
int multi
)
Public Shared Function IiDatFileForm (
gxNetShared As CGXNETCore,
owner As IWin32Window,
title As String,
default As String,
ByRef psz_file_path As String,
type As Integer,
validation_type As Integer,
multi As Integer
) As Integer
public:
static int IiDatFileForm(
CGXNETCore^ gxNetShared,
IWin32Window^ owner,
String^ title,
String^ default,
String^% psz_file_path,
int type,
int validation_type,
int multi
)
static member IiDatFileForm :
gxNetShared : CGXNETCore *
owner : IWin32Window *
title : string *
default : string *
psz_file_path : string byref *
type : int *
validation_type : int *
multi : int -> 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. - title
- Type: SystemString
Title of the Form - default
- Type: SystemString
Default value - psz_file_path
- Type: SystemString
Where the file name(s) is returned - type
- Type: SystemInt32
<define>DAT_TYPE</define> - validation_type
- Type: SystemInt32
<define>FILE_FORM</define> - multi
- Type: SystemInt32
Allow Multiple file selections = TRUE Single file selections = FALSE
Return Value
Type:
Int32
0 - Ok
1 - Cancel
See Also