I was/am doing this through IP sets. Same idea - (to me, a bit easier 
and doable [v13]),
copy the selected set to an IP set, access the IP set on the drop side.
But I am trying to see where I can remove IP<anything>

I thought I would look at NOT using sets at all. 
I seem to remember someone telling me that it was possible to do drag n 
drop between processes using ONLY the pasteboard, and the native data 
placed there during Drag n drop.

Thanks
Chip

On Tue, 10 Jul 2018 13:35:34 -0500, Keith Culotta via 4D_Tech wrote:
> Hope this is on topic...
> 
> During : (Form event=On Begin Drag Over) in the source list, I put 
> the information about the item being dragged on the Pasteboard
>               LOAD RECORD([Item])
>               C_OBJECT($obj)
>               OB SET($obj;"$rec";Record number([Item]))
>               OB SET($obj;"$proc";Current process)
>               OB SET($obj;"$source";"LocEdit")
>               $text:=JSON Stringify($obj)
>                       // set your data type
>               SET TEXT TO PASTEBOARD($text)
> 
> 
> Later on in the destination process, mouse button just up from On 
> Begin Drag Over, the information was read back out...
>       : (Form event=On Drop)
>                       // check here to see if it's your data type on 
> the clipboard
>               C_OBJECT($obj)
>               $obj:=JSON Parse(Get text from pasteboard)
>               $rec:=OB Get($obj;"$rec";Is longint)
>               $proc:=OB Get($obj;"$proc";Is longint)
>               $source:=OB Get($obj;"$source";Is text)
>               
>               If ($proc#Current process) & ($source="LocEdit")...
> 
> Keith - CDI
> 
>> On Jul 10, 2018, at 12:43 PM, Chip Scheide via 4D_Tech 
>> <[email protected]> wrote:
>> 
>> 
>> Context: dragging 1 (or more) records/rows from a selection listbox to 
>> another form in another process. 4D v13.
>> 
>> I know, and can see by using GET PASTEBOARD DATA TYPE, and GET 
>> PASTEBOARD DATA that if I drag a line/record from a selection listbox 
>> to another process there is "stuff" put on the pasteboard.
>> 
>> (native data types)
>> com.4d.private.pid  -- 4bytes
>> com.4d.private.form.object  -- 510bytes
>> 
>> what I do not know, is how do I use the data on the pasteboard.
>> Can someone help?
>> 
>> Thanks
>> Chip
>> ---------------
>> Gas is for washing parts
>> Alcohol is for drinkin'
>> Nitromethane is for racing 
>> **********************************************************************
>> 4D Internet Users Group (4D iNUG)
>> FAQ:  http://lists.4d.com/faqnug.html
>> Archive:  http://lists.4d.com/archives.html
>> Options: https://lists.4d.com/mailman/options/4d_tech
>> Unsub:  mailto:[email protected]
>> **********************************************************************
> 
> **********************************************************************
> 4D Internet Users Group (4D iNUG)
> FAQ:  http://lists.4d.com/faqnug.html
> Archive:  http://lists.4d.com/archives.html
> Options: https://lists.4d.com/mailman/options/4d_tech
> Unsub:  mailto:[email protected]
> **********************************************************************
---------------
Gas is for washing parts
Alcohol is for drinkin'
Nitromethane is for racing 
**********************************************************************
4D Internet Users Group (4D iNUG)
FAQ:  http://lists.4d.com/faqnug.html
Archive:  http://lists.4d.com/archives.html
Options: https://lists.4d.com/mailman/options/4d_tech
Unsub:  mailto:[email protected]
**********************************************************************

Reply via email to