It must be really simple, but I can't find a solution for my problem.
I am creating a CSV editor for simple things as replacing ; to , and removing ".
That all works fine. But now I want to save the text area.
How do I add a sugested name and fix it to the standard extension "csv"?
This doesn't work:
Dim f As FolderItem
Dim dlg As SaveAsDialog
//create a new SaveAsDialog
'dlg.SuggestedFileName = window1.Title
dlg.filter = "TextTypes.csv"
dlg = New SaveAsDialog
'f = new folderitem (window1.title)
f = dlg.ShowModal
//check to see if the user clicked cancel
If f <> Nil Then
//save the TextArea
Call TextArea1.Save(f, false)
And another thing: If I copy some code from the internet or from the help function, realstudio puts everything in one line, instead of the separate lines of code. How can I fix this?