New topic: 

[RB2009r4] SpecialFolder.UserHome fails to work on Windows

<http://forums.realsoftware.com/viewtopic.php?t=30665>

       Page 1 of 1
   [ 3 posts ]                 Previous topic | Next topic         Author  
Message       Cesco           Post subject: [RB2009r4] SpecialFolder.UserHome 
fails to work on WindowsPosted: Mon Oct 26, 2009 6:44 am                        
       
Joined: Fri Mar 09, 2007 2:04 am
Posts: 58
Location: Venice, Italy              I tried to run this line of code on 
RealBasic for Windows:

MsgBox(SpecialFolder.UserHome.ShellPath)

On Mac OS X and Linux it's working and it gives me the proper path, but on 
Windows it's giving me a NilObjectException.

I tried this and I got the same results on RB2009r2.1 and RB2009r4.

EDIT: Ok, I've checked the reference manual and this seems to be the normal 
behaviour of userData, even if IMHO if SpecialFolder.Desktop is currently 
returning "C:\Documents And Settings\User\Desktop" then SpecialFolder.userData 
should return "C:\Documents And Settings\User".      

    Last edited by Cesco on Mon Oct 26, 2009 7:01 am, edited 1 time in total.   
                            Top               patmos           Post subject: 
Re: [RB2009r4] SpecialFolder.UserHome fails to work on WindowsPosted: Mon Oct 
26, 2009 6:50 am                        
Joined: Sun Jun 29, 2008 10:44 am
Posts: 43              UserHome is listed as 'Nil' for Windows XP in the 
SpecialFolder Module Language Reference too.   
                            Top                Cesco           Post subject: 
Re: [RB2009r4] SpecialFolder.UserHome fails to work on WindowsPosted: Mon Oct 
26, 2009 7:03 am                               
Joined: Fri Mar 09, 2007 2:04 am
Posts: 58
Location: Venice, Italy              patmos wrote:UserHome is listed as 'Nil' 
for Windows XP in the SpecialFolder Module Language Reference too.

Thanks for your reply. I have checked that too but IMHO it should return the 
path to the user home; I can imagine that this won't work on some very old 
versions of Windows, but at least on Win2000/XP/Vista and Seven this would 
work.   
                            Top           Display posts from previous: All 
posts1 day7 days2 weeks1 month3 months6 months1 year Sort by AuthorPost 
timeSubject AscendingDescending          Page 1 of 1
   [ 3 posts ]     
-- 
Over 1500 classes with 29000 functions in one REALbasic plug-in collection. 
The Monkeybread Software Realbasic Plugin v9.3. 
http://www.monkeybreadsoftware.de/realbasic/plugins.shtml

[email protected]

Reply via email to