At 7:42 AM -0800 2/2/06, Lennox Jacob wrote:
The problem is when I create a file in B (or C) I can then drag its
icon over its own icon in App A window, App A gives "Item = nil"
This is the code I have in Canvas B (and C) DropObject event:
Dim item, items() as folderitem
OK, so you have item = nil, and items() is an empty array.
Items().Append item
Now you've appended nil (which is the value of item) to your array.
Dim Filestream as TextInputStream
If item = Nil then // The file does not exist
...and of course, item is still nil. You never assigned anything to
it, so how could it be otherwise?
How do I reference that item?
If you mean the folder item in the DragItem, you use the 'obj'
parameter; specifically, obj.FolderItem (after checking
obj.FolderItemAvailable).
If I use item = GetFolderitem("") I do not get the "Item = nil" but
the item seems to be empty.
No, in this case item would be the folder containing your application.
Best,
- Joe
--
Joseph J. Strout
[EMAIL PROTECTED]
_______________________________________________
Unsubscribe or switch delivery mode:
<http://www.realsoftware.com/support/listmanager/>
Search the archives of this list here:
<http://support.realsoftware.com/listarchives/lists.html>