FiveTech Support Forums

FiveWin / Harbour / xBase community
Board index FiveWin for Harbour/xHarbour xbrowse custom myBrowse
Posts: 7318
Joined: Thu Oct 18, 2012 07:17 PM
xbrowse custom myBrowse
Posted: Sat Feb 25, 2023 03:58 PM

I need to create a class associated with Xbrowse that does not collide with any future changes to xbrowse but I don't know how to do it, every time I have an update I have to rewrite everything I need, in particular I have to add some DATA and some Methods, modify a method of xbrowse (with ovverride) . I would like to create it so that I can use it in the future without modifying the original class of fwh

Since from 1991/1992 ( fw for clipper Rel. 14.4 - Momos)

I use : FiveWin for Harbour March-April 2024 - Harbour 3.2.0dev (harbour_bcc770_32_20240309) - Bcc7.70 - xMate ver. 1.15.3 - PellesC - mail: silvio[dot]falconi[at]gmail[dot]com
Posts: 1487
Joined: Tue Jun 14, 2016 07:51 AM
Re: xbrowse custom myBrowse
Posted: Sat Feb 25, 2023 04:43 PM
Marc Venken

Using: FWH 23.08 with Harbour
Posts: 7318
Joined: Thu Oct 18, 2012 07:17 PM
Re: xbrowse custom myBrowse
Posted: Sun Feb 26, 2023 05:22 PM
Marc Venken wrote:Look Here, It could help,

https://forums.fivetechsupport.com/viewtopic.php?f=3&t=41749&hilit=subclass&start=15#p250334

I made it now and it run ok but for one method I must use ovverride procedure because I must re-write a xbrowse method or on each upgrade I must add some lines ...

it is a small addition to the xbrowse class that the fwteam hasn't even taken into consideration, instead I consider it very useful in practice if we have 15 fields in the xbrowse table and we want to display only 4 of them initially for reasons that may also be of aesthetics, the end user however he could display the field he wants online and the configuration is saved in the state or the end user could display all the fields or put back the initial display made by the programmer.
Since from 1991/1992 ( fw for clipper Rel. 14.4 - Momos)

I use : FiveWin for Harbour March-April 2024 - Harbour 3.2.0dev (harbour_bcc770_32_20240309) - Bcc7.70 - xMate ver. 1.15.3 - PellesC - mail: silvio[dot]falconi[at]gmail[dot]com

Continue the discussion