On Jul 28, 2009, at 3:25 PM, fargo@rpgportland.com wrote:
Hi Folks,
A while back, there was a discussion about SpecialFolder and family
on Windows systems. IIRC, the problem was that certain combinations
of SpecialFolder were returning NIL when the path definitely existed.
Was a solution ever uncovered?
I't trying to create a text file in the users home directory, but the
following always returns Nil:
Dim fo As FolderItem
fo = SpecialFolder.UserHome.Child(tempName) /// Nil here...
tos = fo.CreateTextFile
Have I totally gone braindead on a Tuesday, or is there something
wrong in the compiler?
Thanks,
Tim
According the LR (in 2006R3 anyway) UserHome is nil for Windows.
Why? No
idea. You could use SpecialFolder.Desktop.Parent though. I think
that'd
work.
Doh! In fact, SpecialFolder.Documents would actually be more useful.
Thanks!
TIm
_______________________________________________
Unsubscribe or switch delivery mode:
<http://www.realsoftware.com/support/listmanager/>
Search the archives:
<http://support.realsoftware.com/listarchives/lists.html>
|