Sub %Method%(obj)
' Exports an object to a file
' Create a dialog to input the export file name
Dim dlg
Set dlg = obj.CreateCustomDialog("%CurrentTargetCode%.Export")
If not dlg is Nothing Then
' Initialize filename control value
dlg.SetValue "Filename", "c:\temp\MyFile.xml"
' Show dialog
If dlg.ShowDialog() Then
' Retrieve customer value for filename control
Dim filename
filename = dlg.GetValue("Filename")
' Process the export algorithm...
' (Actual export code not included in this example)
Output "Exporting object " + obj.Name + " to file " + filename
End If
' Free dialog object
dlg.Delete
Set dlg = Nothing
End If
End Sub