Request File bug

Archives Forums/MaxGUI Bug Reports/Request File bug

Marco A G Pinto(Posted 2012) [#1]
Hi!

First the command doesn't appear in the right window of the IDE where all commands are but I found it on the forums.

I have started creating a little function to my utility to load ZX Spectrum snapshot files with the extensions: SNA and Z80.

I have typed the following code:
' Load Snapshots
' Allows to load the snapshots from files
' V1.0 - 10/FEB/2012
Function load_snapshot(t)
	filter$="Snapshot Files (*.SNA;*.Z80):sna,z80;All Files:*"
	filename$=RequestFile( "Load Snapshot "+String(t),filter$)
	If filename$="" Return
Print filename

End Function


When the file selector opens, it cuts the text:
"Snapshot Files (*.SNA;*.Z80)"

I believe this is a bug.

Kind regards,
>Marco A.G.Pinto
--------------------


skidracer(Posted 2012) [#2]
As the semi-colon is used for separating items in the drop down file type list you can't unfortunately use one in your description text.


Marco A G Pinto(Posted 2012) [#3]
What?

In the filter$ example of the IDE, the file extensions appear after the ":".

Can't this be improved to use file extensions only after the first ":"?

Maybe this could be a future enhancement for BlitzMax.

Thanks!

Kind regards,
>Marco A.G.Pinto
--------------------


skidracer(Posted 2012) [#4]
Can't you just change

"Snapshot Files (*.SNA;*.Z80):sna,z80;All Files:*

to

"Snapshot Files (*.SNA *.Z80):sna,z80;All Files:*