AlastairOz
Technical User
I have a list box which I am setting up a couple of
"up" and "Down" buttons so the user can reorder the items
to their choosing.
I got my code to work (Not sure if its the best way to do it,
but it works anyhow), but what I need to do is keep the
record in the list highlighted as it moves up or down, so I can keep moving it to the desired position.
Code:
LOCAL lnOld,lnNew
SELECT cSites
STORE RECNO() TO lnOld
SKIP -1
STORE RECNO() TO lnNew
replace testorder WITH lnold
SKIP 1
replace testorder WITH lnNew
=TABLEUPDATE(.t.,.t., "cSites")
thisform.pageframe1.page1.txtsiteList.Requery()
thisform.Refresh()
Any help would be much appreciated
Regards
Alastair
"up" and "Down" buttons so the user can reorder the items
to their choosing.
I got my code to work (Not sure if its the best way to do it,
but it works anyhow), but what I need to do is keep the
record in the list highlighted as it moves up or down, so I can keep moving it to the desired position.
Code:
LOCAL lnOld,lnNew
SELECT cSites
STORE RECNO() TO lnOld
SKIP -1
STORE RECNO() TO lnNew
replace testorder WITH lnold
SKIP 1
replace testorder WITH lnNew
=TABLEUPDATE(.t.,.t., "cSites")
thisform.pageframe1.page1.txtsiteList.Requery()
thisform.Refresh()
Any help would be much appreciated
Regards
Alastair