` 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 November 23, 2024, 3:30 am
This article has been viewed/printed 35351 times.