It is currently Sat Dec 05, 2020 4:09 pm

All times are UTC + 1 hour




Post new topic Reply to topic  [ 4 posts ] 
Author Message
 Post subject: Problem in OpenFileRequester()
PostPosted: Sun Aug 23, 2009 9:52 pm 
Offline
Enthusiast
Enthusiast

Joined: Mon Jun 09, 2003 10:08 pm
Posts: 665
Location: Nottingham
Either I'm making a stupid mistake or there is a bug in OpenFileRequester() and SaveFileRequester() under Win32.

The following code fails to show any .TXT (or .txt) files whenever the 'Text files' option is selected, even when such files exist in the targeted folder. It is OK when 'All files' is selected. I am in Debug mode.

Code:
OpenFileRequester("Load File", "", "Text files *.TXT | *.TXT | All files | *.*", 0)

_________________
Anthony Jordan


Last edited by akj on Sun Aug 23, 2009 9:55 pm, edited 1 time in total.

Top
 Profile  
Reply with quote  
 Post subject: Re: PB4.40B2 Bug in OpenFileRequester()
PostPosted: Sun Aug 23, 2009 9:55 pm 
Offline
Enthusiast
Enthusiast

Joined: Sun Mar 16, 2008 9:18 am
Posts: 469
You're using the filter wrong. Read the manual again. ;)


Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: Sun Aug 23, 2009 9:58 pm 
Offline
Addict
Addict
User avatar

Joined: Tue Mar 21, 2006 12:31 am
Posts: 1773
Location: Canada
Try ... OpenFileRequester("Load File", "", "Text (*.txt)|*.txt| All files | *.*", 0)


Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: Sun Aug 23, 2009 10:13 pm 
Offline
Enthusiast
Enthusiast

Joined: Mon Jun 09, 2003 10:08 pm
Posts: 665
Location: Nottingham
OK, it was the space between the second .TXT and the following | that was causing the problem. I did not realise that whitespace was so critical.

Thanks for your help.

_________________
Anthony Jordan


Top
 Profile  
Reply with quote  
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 4 posts ] 

All times are UTC + 1 hour


Who is online

Users browsing this forum: No registered users and 51 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum

Search for:
Jump to:  

 


Powered by phpBB © 2008 phpBB Group
subSilver+ theme by Canver Software, sponsor Sanal Modifiye