gettingstarted
[Top] [All Lists]

Re: desktopfolder

To: Getting Started <gettingstarted at lists dot realsoftware dot com>
Subject: Re: desktopfolder
From: Will Leshner <leshner at ljug dot com>
Date: Fri, 29 Oct 2004 07:50:36 -0700
Delivered-to: gettingstarted at lists dot realsoftware dot com
References: <200410291446 dot i9TEkD16021884 at claeys dot com>

On Oct 29, 2004, at 7:46 AM, Joseph Claeys wrote:

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

Any suggestions??


Try this instead:

Dim I,n as integer
Dim f as folderitem
f=desktopfolder
if f <> nil then
        N=f.count
        If n>0 then
                for I =1 to n
                listbox1.addrow f.item(i).name
                next
        End if
else
        MsgBox "Can't find folder."
end if

--
REALbasic database options: http://sqlabs.net
REALbasic news and tips: http://rbgazette.com
KidzMail & KidzLog: http://haranbanjo.com

_______________________________________________
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>