Topics   All   Mac OS X (Only)   Windows (Only)   Linux (Only, Not)   iOS (Only, Not)  
Components   Crossplatform Mac & Win   Server   Client   Old   Guides   Examples
New in version: 7.5   8.0   8.1   8.2   8.3   8.4   8.5   9.0   9.1   9.2    Statistic  


Queries the native path with the given index.

Component Version macOS Windows Server FileMaker Cloud FileMaker iOS SDK
FileDialog 2.7 Yes Yes No No No
MBS( "FileDialog.GetPath" { ; index } )   More


Parameter Description Example value
index Optional
The index of the path.


Returns native path.


Queries the native path with the given index.
Use Path.NativePathToFileMakerPath to convert to a FileMaker path if required.


Export all containers to one folder:

#Ask for folder?
Set Variable [$r; Value:MBS("FileDialog.Reset")]
Set Variable [$r; Value:MBS("FileDialog.SetMessage"; "Export folder?")]
Set Variable [$r; Value:MBS("FileDialog.SelectFolderDialog")]
If [$r = "OK"]
    #get path from dialog:
    Set Variable [$npath; Value:MBS( "FileDialog.GetPath"; 0 )]
    #convert to FileMaker path for Export Field Contents
    Set Variable [$fpath; Value:MBS( "Path.NativePathToFileMakerPath"; $npath )]
    #Loop over all records:
    Go to Record/Request/Page [First]
        #Export files from this record
        #figure out file name
        Set Variable [$name; Value:GetAsText ( Container Batch Export::Test1 )]
        Set Variable [$name; Value:GetValue($name; 1)]
        Set Variable [$name; Value:MBS( "Path.LastPathComponent"; $name )]
        Set Variable [$dpath; Value:MBS( "Path.AddPathComponent"; $fpath; $name )]
        Export Field Contents [Container Batch Export::Test1; “$dpath”]
        #Next record
        Go to Record/Request/Page [Next; Exit after last]
    End Loop
End If

Select folder in one expression:


r = MBS("FileDialog.Reset");
r = MBS("FileDialog.SelectFolderDialog");
folder = If ( r = "OK" ; MBS("FileDialog.GetPath"; 0); "" )

]; folder)

See also

Example Databases

Created 18th August 2014, last changed 21st June 2017

FileDialog.GetNameFieldStringValue   -   FileDialog.GetPathCount

Feedback: Report problem or ask question.

MBS Xojo PDF Plugins