gettingstarted
[Top] [All Lists]

desktopfolder

To: "'Getting Started'" <gettingstarted at lists dot realsoftware dot com>
Subject: desktopfolder
From: "Joseph Claeys" <joseph at claeys dot com>
Date: Fri, 29 Oct 2004 09:46:12 -0500
Delivered-to: gettingstarted at lists dot realsoftware dot com
Thread-index: AcS9vGDfqo/0MFdNSKqsXDnVaR8DjQACRYFA
I tried the follow code (from the language reference) using RB 5.5.3 on
WinXP(SP2)

Dim I,n as integer
Dim f as folderitem
F=volume(0).desktopfolder 
N=f.count
If n>0 then
        for I =1 to n
        listbox1.addrow f.item(i).name
        next
End if

I get a nil object exception.  In the debugger it is clear that f stays nil
even after the third line...  

Any suggestions??

~ joe
 

_______________________________________________
Unsubscribe or switch delivery mode:
<http://www.realsoftware.com/support/listmanager/>

Search the archives of this list here:
<http://www.realsoftware.com/listarchives/lists.html>

<Prev in Thread] Current Thread [Next in Thread>