From: Paulo Oliveira on
Hi all,

I have a datawindow with 2 bbrowsers, using RowSelect(), how can i say
if the event is from browser1 or browser2?

TIA
Paulo Oliveira
From: Camille Kater on
Hi Paulo,

oControl:=GetFocusedObject()
if oControl=oDCBrowser1
...
else
...
endif

Camille

Paulo Oliveira wrote:
> Hi all,
>
> I have a datawindow with 2 bbrowsers, using RowSelect(), how can i say
> if the event is from browser1 or browser2?
>
> TIA
> Paulo Oliveira
From: Paulo Oliveira on
Hi Cammile,
Thanks, i use GetFocusedObject() all the time.
I think i left my brain at home today :)

Paulo
From: Bernhard Mayer on
Hi Paulo,

> I have a datawindow with 2 bbrowsers, using RowSelect(), how can i say
> if the event is from browser1 or browser2?

METHOD RowSelect(oEvent as bRowEvent) AS LOGIC PASCA CLASS dlgXY

// a ControlEvent knows about the control firing the event
IF oEvent:Control:NameSym = #bBBrowser1
ENDIF
RETURN TRUE

HTH,
Bernhard
From: Geoff Schaller on
No - don't do this. Use the method Bernhard shows.
Focus change can before this event is called.
(Not always but if the user is fast with keys....)

"Camille Kater" <katercamXXX(a)pt.lu> wrote in message
news:1257426928_89(a)vo.lu:

> Hi Paulo,
>
> oControl:=GetFocusedObject()
> if oControl=oDCBrowser1
> ...
> else
> ...
> endif
>
> Camille
>
> Paulo Oliveira wrote:
>
> > Hi all,
> >
> > I have a datawindow with 2 bbrowsers, using RowSelect(), how can i say
> > if the event is from browser1 or browser2?
> >
> > TIA
> > Paulo Oliveira