From Xojo Documentation

Property (As String )
aFolderItemDialog.ActionButtonCaption = newStringValue
StringValue = aFolderItemDialog.ActionButtonCaption

Supported for all project types and targets.

Text of the label for the Action button (e.g., Choose, Save, Open, etc., depending on context). It is not necessarily the default button for the dialog.


This property is not supported on Linux.


This example illustrates all the labelling properties of a FolderItemDialog.

Dim dlg As OpenDialog
Dim f As FolderItem
dlg = New OpenDialog
dlg.ActionButtonCaption = "Action Button"
dlg.CancelButtonCaption = "Cancel Button"
dlg.SuggestedFileName = "Suggested Filename"
dlg.Title = "Title bar text"
dlg.PromptText = "Prompt Text"
dlg.Left = 50
dlg.Top = 50

#If Not TargetLinux Then
dlg.InitialDirectory = SpecialFolder.Documents
#Else // open Home directory on linux
dlg.InitialDirectory = SpecialFolder.home
f = dlg.ShowModal
If f <> Nil Then
MsgBox("You selected: " + f.NativePath)
// User Cancelled
End If

See Also

OpenDialog, SaveAsDialog