Thanks to everyone who replied. Looks like there is no new command to replace the dropped command…
Wayne: > The best documentation is in the introduction to the topic: > https://doc.4d.com/4Dv18/4D/18/Drag-and-Drop.300-4505037.en.html Thanks for your advice. I have been through that doc many times, thinking I must have missed it, but can find no mention of how to get the drag source variable or dragged element during the On Drop event. Perhaps I did (and still do) miss it…? > A better place to ask this sort of question is on the new forum: > https://discuss.4d.com Unfortunately it doesn’t work well from my older Mac, and there is no digest version. There is a summary version but clicking the links doesn’t work without separate login which doesn’t remember the previous login inputs, etc. I guess I’m being lazy :-) Jeremy: > Yes, there is a much easier way to handle Drag and Drop So, if I am understanding you correctly, we need to replace the command with: - create an object during On Begin Drag Over (source object) - store the source listbox variable (pointer/name?) and its current element in the object (will test if dragged element is known at this point) - store the stringified object onto text pasteboard - trap On Drop event for target listbox and extract source info from text pasteboard - load JSON object back from text pasteboard - extract source listbox (pointer/name?) and dragged element from object - continue process as usual Many thanks for pointing out the steps needed. Seems we will all have to do a lot of recoding to replace a single very simple command that is no longer available. I guess we’ll never know why 4D did that. Chip: Thanks for your offer of example code. Yes please… :-) Cheers, Keith > On Sep 13, 2020, at 12:06 AM, Keith Goebel via 4D_Tech <[email protected]> > wrote: > > I’m upgrading a structure to v18 (Win) and am trying to replace the obsolete > command > _O_DRAG AND DROP PROPERTIES($Source_Object_p;$Source_Element_l;$Process_ID_l) > with the v18 equivalent for the purposes of handling drag and drop between > two array based list boxes. > > I’m sure must be an easy way to do it but I just can’t find it. > > Can anyone point me in the direction of the info I need to accomplish the > equivalent of the old command? > TIA, Keith ********************************************************************** 4D Internet Users Group (4D iNUG) New Forum: https://discuss.4D.com Archive: http://lists.4d.com/archives.html Options: https://lists.4d.com/mailman/options/4d_tech Unsub: mailto:[email protected] **********************************************************************

