Real Software Forums

The forum for Real Studio and other Real Software products.
[ REAL Software Website | Board Index ]
It is currently Fri Jul 21, 2017 9:35 am
xojo

All times are UTC - 5 hours




Post new topic Reply to topic  [ 19 posts ]  Go to page Previous  1, 2
Author Message
 Post subject: Re: Eliminating "extra" steps in saving a file.
PostPosted: Mon Jun 03, 2013 8:36 am 
Offline

Joined: Sat Dec 30, 2006 6:52 pm
Posts: 130
Location: New York City
classone wrote:
Then add the step to create that folder within the conditional.
It seems odd "creating" a folder that I KNOW already exists but to take your cue would adding this line work?
"if not f.exists then f.CreateAsFolder"?
I would test it myself, but I'm not at home. I'm actually at work right now (don't tell!).


Top
 Profile  
Reply with quote  
 Post subject: Re: Eliminating "extra" steps in saving a file.
PostPosted: Mon Jun 03, 2013 2:13 pm 
Offline

Joined: Mon Aug 14, 2006 9:33 pm
Posts: 1774
Have a look at the LR to see the path to SpecialFolder.Documents. If it existed, you wouldn't have gotten the msg from my code.

_________________
Roger Clary
Class One Software
Educational Software for Lifelong Learning
http://www.classonesoftware.com


Top
 Profile  
Reply with quote  
 Post subject: Re: Eliminating "extra" steps in saving a file.
PostPosted: Mon Jun 03, 2013 4:04 pm 
Offline

Joined: Sat Dec 30, 2006 6:52 pm
Posts: 130
Location: New York City
classone wrote:
Have a look at the LR to see the path to SpecialFolder.Documents. If it existed, you wouldn't have gotten the msg from my code.
The LR shows /home/user/Documents as the path and mine is /home/paulie/Documents. As a test I created a folder called "user" (in my home folder), copied my "Documents" folder to it and reran your code. I still get the error msg: "There is no documents folder.", even though there now is a valid path = /home/user/Documents/


Top
 Profile  
Reply with quote  
 Post subject: Re: Eliminating "extra" steps in saving a file.
PostPosted: Mon Jun 03, 2013 4:20 pm 
Offline

Joined: Mon Aug 14, 2006 9:33 pm
Posts: 1774
Good Luck.

_________________
Roger Clary
Class One Software
Educational Software for Lifelong Learning
http://www.classonesoftware.com


Top
 Profile  
Reply with quote  
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 19 posts ]  Go to page Previous  1, 2

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