Hello,

I have an app A which has two windows B & C.
Window A has two Canvasses B & C, so when the app is launched Window A opens 
and I can now click in B (or C) to open B (or C).

When I create a file in B (or C) I can then double click on its icon and App A 
will open the appropriate window and display the contents of the file as 
expected.

When I create a file in B (or C) I can then drag its icon over App A icon, App 
A will open the appropriate window and display the contents of the file as 
expected.

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
Items().Append item
Dim Filestream as TextInputStream

If item = Nil then // The file does not exist
msgbox "item = nil"
return
elseif item.directory then
filestream = item.openAsTextFile
....
end if

 OK I have an idea what is happening,
When I drag the icon over the canvas B (orC) in App A window, Item = nil 
because no reference is made to the item,

How do I reference that item?

I can use item = GetOpenFolderitem("") and this will display open file dialog 
and then allow me to navigate for the file, but I do not want to do that.

If I use item = GetFolderitem("") I do not get the "Item = nil" but the item 
seems to be empty.

Thanks.

Lennox.


                
---------------------------------
Bring words and photos together (easily) with
 PhotoMail  - it's free and works with Yahoo! Mail.
_______________________________________________
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>

Reply via email to