How about this?
Put two one-column grids on a form
Form load event
************
Open Database ( Home(2)+"Northwind\Northwind" )
Select CompanyName ;
from Customers ;
into Cursor cursorOne ;
nofilter readwrite
Create Cursor cursorTwo ( CompanyName C(60))
Form init code
**************
this.grid1.recordsource = 'cursorone'
this.grid2.RecordSource ='cursortwo'
MouseDown code of the only TextBox of the only column of the first grid
*********************************************************
Lparameters nButton, nShift, nXCoord, nYCoord
If nButton=1
Do While Mdown()
This.Drag(1)
exit
Enddo
Endif
DragDrop code for the second grid
****************************
(Beware: use the grid's drag and drop, not the internal controls dragdrop)
LPARAMETERS oSource, nXCoord, nYCoord
Local nRow,nCol
Store 1 to nRow,nCol
If this.GridHitTest( nXCoord,nYCoord,3,@nRow,@nCol) = this.ActivateCell
(nRow,nCol)
Insert into (this.RecordSource) (companyname) values (oSource.value)
Delete In (oSource.parent.parent.recordsource)
thisform.Refresh
EndIf
The above code was developed by a friend of mine, who does not participate
in this forum.
Rafael Copquin
_______________________________________________
Post Messages to: [email protected]
Subscription Maintenance: http://leafe.com/mailman/listinfo/profox
OT-free version of this list: http://leafe.com/mailman/listinfo/profoxtech
Searchable Archive: http://leafe.com/archives/search/profox
This message: http://leafe.com/archives/byMID/profox/[EMAIL PROTECTED]
** All postings, unless explicitly stated otherwise, are the opinions of the
author, and do not constitute legal or medical advice. This statement is added
to the messages for those lawyers who are too stupid to see the obvious.