FolderItemDialog.SuggestedFileName

From Xojo Documentation

Property (As String )
aFolderItemDialog.SuggestedFileName = newStringValue
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.

Dim dlg As New SaveAsDialog
Dim f As FolderItem
dlg.SuggestedFileName = "SaveFile.txt"
f = dlg.ShowModal
If f <> Nil Then
MsgBox("You selected: " + f.NativePath)
Else
// User Cancelled
End If

See Also

OpenDialog, SaveAsDialog