Refresh a Browse With A New Pointer

This forum is for eXpress++ general support.
Post Reply
Message
Author
User avatar
GeneB
Posts: 158
Joined: Sun Jan 31, 2010 8:32 am
Location: Albuquerque, New Mexico, USA
Contact:

Refresh a Browse With A New Pointer

#1 Post by GeneB »

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) }

User avatar
rdonnay
Site Admin
Posts: 4729
Joined: Wed Jan 27, 2010 6:58 pm
Location: Boise, Idaho USA
Contact:

Re: Refresh a Browse With A New Pointer

#2 Post by rdonnay »

Do this instead:

Code: Select all

nItem := DoSearch( aBrowse )

oBrowse:arrayElement := nItem
oBrowse:refreshAll()
The eXpress train is coming - and it has more cars.

User avatar
GeneB
Posts: 158
Joined: Sun Jan 31, 2010 8:32 am
Location: Albuquerque, New Mexico, USA
Contact:

Re: Refresh a Browse With A New Pointer

#3 Post by GeneB »

Perfect.
I hope you know how much your help is appreciated.
GeneB

Post Reply