ListBox Obj As DragItem (from DropObject event) niled when using a FolderItem
Jean-Luc Arnaud <jean-luc-E/[email protected]> Mon, 1 Oct 2018 12:08:46 +0200
| Newsgroups | gmane.comp.lang.realbasic.user |
|---|---|
| Organization | Centre Direct du Multimédia |
| Message-ID | <[email protected]> |
Hi all, I have an issue with Obj (As DragItem) in the DropObject event of a ListBox. I didn't find no matching entry on the forum. Before filling a FeedBack report, I'd like to know if it's a known bug, and even if it's an actual bug! Here is the problem: I'm using 2 listboxes, one is the Source and the other the Target for FolderItems. Dragging a row from Source to Target is intended to copy Source FolderITem in a Target folder. So, when DropObject fires, the first thing I have to do is to verify that the Target Folder is not Nil. If so, using SelectFolderDialog, I ask the user to select a Target folder. Doing that, Obj (that contains FolderItem(s) before calling SelectFolderDialog, this has been verified) is niled. When the Target folder isn't nil, all works as expected, before SelectFolderDialog is not used. Any idea or advice? Real bug or am I doing something wrong? Many thanks -- Jean-Luc Arnaud