info(“dropobject”)
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

- dragtext -- starts drag-and-drop of text.
- dropfromfinder -- processes any files or folders that have been dropped on a form from the finder.
- dropimagesfromfinder -- processes images that have been dropped on a form from the Finder. The images may be added to new records in the database or put in the current record.
- info("dropdatabase") -- returns the name of the database that contains the form data was dropped on.
- info("dropfiles") -- returns a list of files dragged onto a *Drag Receiver* form object (see Drag and Drop).
- info("dropform") -- returns the name of the form data was dropped on.
- info("droptext") -- returns text dragged onto a *Drag Receiver* form object (see Drag and Drop).
- info("droptypes") -- returns a list of all the data types dragged onto a *Drag Receiver* form object (see Drag and Drop).
- info("dropvcard") -- returns the text of any VCards dragged onto a *Drag Receiver* form object (see Drag and Drop).
- info("dropwindow") -- returns the name of the window that contains the form data was dropped on.
- info("dropwindownumber") -- returns the number of the window that contains the form data was dropped on.

History

Version | Status | Notes
10.0 | No Change | Carried over from Panorama 6.0