info("dropobject")

The info(“dropobject”) function returns the name of the object that data was dropped on.


Description

This function returns the name of the object that data was dropped on (see Drag and Drop). Note: This window isn’t necessarily the currently active window – the user can drag onto any window, not just the active one.

This example imports the dropped text onto the end of the current database. This code is designed to be used with two Drag Receiver objects – one named append, the other named replace. Depending on which one the data is dropped onto, the text will either be appended to the existing data, or will replace the existing data.

window info("dropwindow")
importtext info("droptext"),"existingdata",info("dropobject")

See Also


History

VersionStatusNotes
10.0No ChangeCarried over from Panorama 6.0