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