Re: selectDirectory( ) dialog startup

new topic     » goto parent     » topic index » view thread      » older message » newer message

Antonio Alessi wrote:
> 
> akusaya wrote:
> > 
> > > It could be fine to open the selectDirectory( ) dialog
> > > starting from a custom folder instead of "My Documents".
> > 
> > > Somebody knows how to?
> > 
> > Use my 5-years-old submission :p
> > 
> > <a
> > href="http://www.rapideuphoria.com/browsdir.zip">http://www.rapideuphoria.com/browsdir.zip</a>
> > 
> 
> Done successfully!
> 
> Thanks :o
> 
> antonio

Hi again akusaya,

a small enhancement using your getFolder() routine, 
where:
if length(filename)=2 and filename[2]=':' then
		filename &= '\\'
	elsif filename[$] = '\\' then
		filename = filename[1..$-1]
	end if

	
could be conveniently replaced by:

if length(filename)=2 and filename[2]=':' then
		filename &= '\\'
	elsif length(filename) and filename[$] = '\\' then
		filename = filename[1..$-1]
	end if	


allowing the user to declare the starting directory,
or not, 
thus opening the dialog on the default system folder
without getting any error.

antonio

new topic     » goto parent     » topic index » view thread      » older message » newer message

Search



Quick Links

User menu

Not signed in.

Misc Menu