For Programmers: Free Programming Magazines  


Home > Archive > Clarion > March 2004 > Drag, Drop & BRW1.UpdateBuffer









You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

 

Author Drag, Drop & BRW1.UpdateBuffer
hvansomeren

2004-03-26, 11:01 pm

Hi all,

I have two very simple windows, each containing a browse.

The browse being dragged from has the following embedded code at the correct
place:
IF DRAGID()
BRW1.UpdateBuffer ! put selected record in
filebuffers
SETDROPID( TAB2:Table2String )
END

The browse being dropped on has the following embedded code at the correct
place:
TAB1:Table1String=DROPID()
GlobalRequest = InsertRecord
UpdateTable1 ! update form
SELF.Reset(True) ! show record immediately
in browse

I am using BRW1.UpdateBuffer so that I give the correct filebuffer-content
to SETDROPID.
It doesn't work.
I have to click on a record and then drag it, otherwise I won't drag the
correct record.
I don't want to click first and then drag.
I would like to drag a record right away.

Has anyone a clue why the above code doesn't work?

Thanks for any help,

Harry van Someren
btop@planet.nl



Sponsored Links







Also available: Server administration forum archive | Web Design forum archive | Software forum archive | Hardware reviews archive

Copyright 2008 codecomments.com