David Higgs
Programmer
I have a Grid displayed on a Form with Up / Down Command Buttons. When I first run the program it is always the '1st record' that get's moved down and not the record where the cursor is located. I would like to be able to click / select any row in the table and be able to move the contents up/down with the cursor following the record so that the record can be moved further up/down. I'm thinking I need a RecNo() or Set Focus somewhere, but I'm not sure!
Regards,
David
Code:
SELECT net_list
SET ORDER TO pos
pos_1 = pos
call_1 = callsign
skip
pos_2 = pos
call_2 = callsign
replace pos WITH pos_2 FOR callsign = call_1
replace pos WITH pos_1 FOR callsign = call_2
* = TABLEUPDATE(.T.)
DO alt_col && Alternative Column Colours
GO TOP
SEEK (pos_2) && Return pointer to selected entry
thisform.pageframe1.page8.grdWab_net.Refresh
Regards,
David