I am trying to change the Pointer variable outside of a DCBROWSE and then refresh the Browse to show the new Pointer position. The code below doesn't do it. Could someone please show me the proper way to do this? Thanks.
nItem := 1
@ 1,1 DCBROWSE oBrowse DATA aBrowse POINTER nItem
DCBROWSECOL ELEMENT 1 PARENT oBrowse HEADER "abc"
@ 10,10 DCPUSHBUTTON CAPTION "Search" SIZE 10,1 ;
ACTION {|| nItem := DoSearch(aBrowse) ;
, DC_GetRefresh(getlist) }
Refresh a Browse With A New Pointer
Re: Refresh a Browse With A New Pointer
Do this instead:
Code: Select all
nItem := DoSearch( aBrowse )
oBrowse:arrayElement := nItem
oBrowse:refreshAll()
The eXpress train is coming - and it has more cars.
Re: Refresh a Browse With A New Pointer
Perfect.
I hope you know how much your help is appreciated.
GeneB
I hope you know how much your help is appreciated.
GeneB