` Printed Icetips Article

Icetips Article



Par2: Drag and Drop basics
1999-08-23 -- Steven Gallafent
 
If you have set the drop signature correctly on the target control you
should have an EVENT:Drop control event. This is where the code for the drop
action goes. A quick example follows.

Assuming that you're dragging records in the Employee file and the file has
a unique ID:

Drag browse, control event handling, EVENT:Drag:

BRW1.UpdateViewRecord
SETDROPID(Employee:IDField)

Drop control, control event handling, EVENT:Drop:

Emp:IDField = DROPID()
Access:Employee.Fetch(Emp:IDFieldKey)
! Do whatever you want here



Printed May 7, 2024, 7:23 pm
This article has been viewed/printed 35134 times.