Real Software Forums
http://forums.realsoftware.com/

Eliminating "extra" steps in saving a file.
http://forums.realsoftware.com/viewtopic.php?f=1&t=48042
Page 2 of 2

Author:  newyorkpaulie [ Mon Jun 03, 2013 8:36 am ]
Post subject:  Re: Eliminating "extra" steps in saving a file.

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!).

Author:  classone [ Mon Jun 03, 2013 2:13 pm ]
Post subject:  Re: Eliminating "extra" steps in saving a file.

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.

Author:  newyorkpaulie [ Mon Jun 03, 2013 4:04 pm ]
Post subject:  Re: Eliminating "extra" steps in saving a file.

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/

Author:  classone [ Mon Jun 03, 2013 4:20 pm ]
Post subject:  Re: Eliminating "extra" steps in saving a file.

Good Luck.

Page 2 of 2 All times are UTC - 5 hours
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group
http://www.phpbb.com/