FiveTech Support Forums

FiveWin / Harbour / xBase community
Board index FiveWin for Harbour/xHarbour xbrowse click clause
Posts: 1195
Joined: Mon Oct 17, 2005 05:41 AM
xbrowse click clause
Posted: Mon Jun 27, 2016 07:42 AM
Hi,

I'am convering a LISTBOX into a XBROWSE in my program.

In a listbox I can do:
Code (fw): Select all Collapse
REDEFINE listbox .... ;
.....
ON CHANGE myfunction() ;
ON CLICK myfunction()


In xbrowse I get an compile-error.
I Can only do:
Code (fw): Select all Collapse
REDEFINE xbrowse  .... ;
.....
ON CHANGE myfunction()



How can I execute a function after someone select that browse, even when it's not changed.
Sometimes there is is only 1 item in the browse, and I can't execute the function by selecting first something else...
Regards,

Marc



FWH32+xHarbour | FWH64+Harbour | BCC | DBF | ADO+MySQL | ADO+MariaDB | ADO+SQLite
Posts: 44162
Joined: Thu Oct 06, 2005 05:47 PM
Re: xbrowse click clause
Posted: Mon Jun 27, 2016 08:21 AM

Marc,

You can do:

oXbrowse:bLCLicked = { | nRow, nCol, nFlags | MyFunction() }

regards, saludos

Antonio Linares
www.fivetechsoft.com
Posts: 1195
Joined: Mon Oct 17, 2005 05:41 AM
Re: xbrowse click clause
Posted: Mon Jun 27, 2016 08:46 AM

Thank you Antonio, it' s working fine now :D

Regards,

Marc



FWH32+xHarbour | FWH64+Harbour | BCC | DBF | ADO+MySQL | ADO+MariaDB | ADO+SQLite

Continue the discussion