Hello!
Trying to save a file named "TP PToject Manager 2.5" fails. The PB IDE thinks that ".5" is the fileextension, but this is not true. I explicitely selected ".pb or sometimes ".pbi" in the file pattern list, but it still doesn't work.
In other programs (Paint, Notepad) it works.
Saving: fileextensions not recognized correctly
Saving: fileextensions not recognized correctly
PB 4.30
Code: Select all
onErrorGoto(?Fred)
> with the typed ".pb" on the end
I know. But this is somehow annoing...?!
I know. But this is somehow annoing...?!
PB 4.30
Code: Select all
onErrorGoto(?Fred)
Be careful!
Try to save a HTML file with Notepad, for example. Typing "index.html" doesn't work, unless you choose "All files" as file pattern.
In this case, the PB IDE behaviour would be better.
But Notepad does not have the mistake that it interpretes ".5" as pattern.
All in all, I agree with you, PB.
Try to save a HTML file with Notepad, for example. Typing "index.html" doesn't work, unless you choose "All files" as file pattern.
In this case, the PB IDE behaviour would be better.
But Notepad does not have the mistake that it interpretes ".5" as pattern.
All in all, I agree with you, PB.
PB 4.30
Code: Select all
onErrorGoto(?Fred)
This is how it's done in most applications:
Of course, savefile() needs to check if the filename is a valid filename.
Code: Select all
If (Left(name, 1) #DOUBLEQUOTE$ And Right(name, 1) = #DOUBLEQUOTE$) Or pattern = allfiles
name = stripQuotes(name)
savefile(name)
Else
ext = firstextensionincludingdotinselectedpattern()
If Right(name, Len(ext)) = ext
savefile(name)
Else
savefile(name + ext)
EndIf