` Printed Icetips Article

Icetips Article



ABC: Drag and drop between browses
1999-05-15 -- Jim Kane
 
Newsgroups: topspeed.products.c5ee

> What are the rules that needs to be in place within the two browses for this
> to work?

At the start of the drag, do a  brw1.updateviewrecord() on the browse you are
draging from. Copy those fields you want to copy to global variables.  On
drop, read from the global variables then clear them. If on drop the global
variables were not all blank, then copy them into the new record and call
access:file.tryInsert().  Of course watch out for duplicate key entries,
autonumbering and any other requirements.

As far as ethics or policy, we dont have any, written anyway.  Ask all the
questions you want but dont expect all of them to be answered. I get rather
annoyed (personnally) when people compain that their questions are not
answered as if they had paid money and had a guarantee that they should be
aswered. There is paid tech support available for that. It would be great if
there was a volunteer answer for every question but that doesnt happen.  The
biggest way to get your question aswered is to state it well. For example,
always include the version of cW and template set (abc or clarion). Re read
your message from the view point of someone who has never seen your program or
problem.  Try to end with a succint question like 'How do I drag a record from
a browse to another browse based on different file on another window using
C5EEGold/ABC?'

---
Jim Kane



Printed December 4, 2024, 3:08 am
This article has been viewed/printed 35403 times.
Google search has resulted in 33 hits on this article since January 25, 2004.