Page 1 of 1

row of browse drop

Posted: Mon Feb 26, 2018 4:53 am
by c-tec
Hello,
I try to get the row of the target browser where I drop a cell from another browser. How can I retrieve this value ?
regards
Rudolf

drag from
DCBROWSECOL ELEMENT 7 WIDTH 7 HEADER 'Betrag' PARENT oBrowse DRAG {|o|o}

drop to
DCBROWSECOL ELEMENT 1 WIDTH 6 HEADER 'Rechnung' PARENT oBrowse2 DROP {|o,a|dropzlg(o,a)}


function dropzlg(o,oFrom)
******************************************************************
local nCol := o:columnpos
local xData := o:getdata()
dc_inspectobject(o) // target row
dc_inspectobject(oFrom) // source row
return .t.
.

Re: row of browse drop

Posted: Mon Feb 26, 2018 7:27 am
by Tom
Look at "array.prg" in ..\Samples\DragDrop.

Re: row of browse drop

Posted: Mon Feb 26, 2018 7:38 am
by c-tec
thank you, exactly what I need
regards
Rudolf