Real Software Forums

The forum for Real Studio and other Real Software products.
[ REAL Software Website | Board Index ]
It is currently Sun Dec 17, 2017 10:55 am
xojo

All times are UTC - 5 hours




Post new topic Reply to topic  [ 3 posts ] 
Author Message
 Post subject: Folder Location - Choosing, Saving and Retrieving
PostPosted: Tue Feb 19, 2013 11:25 pm 
Offline

Joined: Sat Aug 18, 2012 3:24 am
Posts: 6
In my app (a simple word processor), I want the user to be able to decide the main "top" folder where files will be written to and read from and where sub-folders can be created.

I also, naturally want to save their choice in a plist - I am using MacCrafters.

Currently I am specifying the location e.g.....

dim MainDocs As FolderItem = SpecialFolder.Desktop.Child("MyDocs").Child("Letters")

.....and ensuring that if the folder does not exist that it is created but, like I said, I want the user to choose where the "top" folder is i.e. "MyDocs". This could be in a sub folder of the documents folder - or anywhere he/she chooses.

Harry5545

_________________
Harry5545


Top
 Profile  
Reply with quote  
 Post subject: Re: Folder Location - Choosing, Saving and Retrieving
PostPosted: Tue Feb 19, 2013 11:54 pm 
Offline
User avatar

Joined: Sun Jan 25, 2009 5:11 pm
Posts: 576
Location: Guatemala, Central America
Something like this?

dim f as FolderItem

f = SelectFolder()

if f = nil then
exit
end if

MsgBox "Your top folder is: " + f.AbsolutePath


Or I didn't understand the question?

_________________
Future RS guru.
Ride the world!


Top
 Profile  
Reply with quote  
 Post subject: Re: Folder Location - Choosing, Saving and Retrieving
PostPosted: Wed Feb 20, 2013 7:09 pm 
Offline

Joined: Sat Aug 18, 2012 3:24 am
Posts: 6
Thanks for that.

I'd got that far choosing a folder on the desktop called "Tester" and the result is:

Macintosh HD:Users:Harry5545:Desktop:Tester:

The problems now are:
1) How do I save that info in a plist
2) How do I retrieve that from the plist
3) How do I use that to point users back to "Tester"

Hary55435

_________________
Harry5545


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

All times are UTC - 5 hours


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 © 2000, 2002, 2005, 2007 phpBB Group