FolderItemDialog.SuggestedFileName
From Xojo Documentation
Property (As String )
aFolderItemDialog.SuggestedFileName = newStringValue
or
StringValue = aFolderItemDialog.SuggestedFileName
Supported for all project types and targets.
or
StringValue = aFolderItemDialog.SuggestedFileName
Supported for all project types and targets.
The default name of the file; it appears as the default text in the filename enterable area.
Notes
OpenDialogs display this value on Windows, but not other platforms.
Example
This example illustrates all the labelling properties of a FolderItemDialog.
Var dlg As New SaveAsDialog
Var f As FolderItem
dlg.SuggestedFileName = "SaveFile.txt"
f = dlg.ShowModal
If f <> Nil Then
MessageBox("You selected: " + f.NativePath)
Else
// User Cancelled
End If
Var f As FolderItem
dlg.SuggestedFileName = "SaveFile.txt"
f = dlg.ShowModal
If f <> Nil Then
MessageBox("You selected: " + f.NativePath)
Else
// User Cancelled
End If