FiveTech Support Forums

FiveWin / Harbour / xBase community
Board index FiveWin for Harbour/xHarbour xBrowse, ADS and 'SET DELETED ON'
Posts: 392
Joined: Tue Mar 10, 2009 11:54 AM
xBrowse, ADS and 'SET DELETED ON'
Posted: Thu Aug 20, 2009 11:20 AM

Hi,

in my app, I have set 'SET DELETED ON' in the initializing function, to suppress visibility of deleted records for all work areas.

But, only when running with ADS, xBrowse ignores this global setting and the deleted records are visible!

What can I do, instead of adapting the filter settings of each work area?

Windows 11 Pro 22H2 22621.1848

Microsoft (R) Windows (R) Resource Compiler Version 10.0.10011.16384

Harbour 3.2.0dev (r2008190002)

FWH 23.10 x86
Posts: 10733
Joined: Sun Nov 19, 2006 05:22 AM
Re: xBrowse, ADS and 'SET DELETED ON'
Posted: Thu Aug 20, 2009 02:34 PM

Please also call the function AdsSetDeleted( .t. )

XBrowse or any other browse does not change the deleted status. This has nothing to do with XBrowse.

Regards



G. N. Rao.

Hyderabad, India
Posts: 392
Joined: Tue Mar 10, 2009 11:54 AM
Re: xBrowse, ADS and 'SET DELETED ON'
Posted: Fri Aug 21, 2009 07:41 AM
Hello Rao,

you are right!

There was a bug in my Function 'AdsRecCount()', probably caused by 'cut & paste' and forgotten to change .F. to .T. :-)

See source:
Code (fw): Select all Collapse
 Set( _SET_DELETED, .F. )
      AdsSetDeleted( .F. )
      nRecs := AdsKeyCount()
      AdsSetDeleted( .T. )
      Set( _SET_DELETED, .F. )  // Here is the bug!

Thank you very much.

BTW: xBrowse and his huge possibilities was one of the main reasons why I switched to FiveWin and I'm still hooked on it :-)
Windows 11 Pro 22H2 22621.1848

Microsoft (R) Windows (R) Resource Compiler Version 10.0.10011.16384

Harbour 3.2.0dev (r2008190002)

FWH 23.10 x86
Posts: 10733
Joined: Sun Nov 19, 2006 05:22 AM
Re: xBrowse, ADS and 'SET DELETED ON'
Posted: Fri Aug 21, 2009 08:36 AM

Glad you found out the bug.

May I know why are you switching the deleted status to .f. before calling AdsKeyCount() ? Is it for reasons of performance? Now your nRecs variable includes deleted records also. How is this useful to you?

It is really a very good decision to switch to FiveWin. May I know what was your earlier platform from which you switched to FiveWin?

Regards



G. N. Rao.

Hyderabad, India
Posts: 392
Joined: Tue Mar 10, 2009 11:54 AM
Re: xBrowse, ADS and 'SET DELETED ON'
Posted: Fri Aug 21, 2009 11:13 AM
Rao,

May I know why are you switching the deleted status to .f. before calling AdsKeyCount() ? Is it for reasons of performance? Now your nRecs variable includes deleted records also. How is this useful to you?

It is your own recommendation, see the topic 'Why Some Browses with ADS are slow?': http://forums.fivetechsupport.com/viewtopic.php?f=3&t=9343

It is really a very good decision to switch to FiveWin. May I know what was your earlier platform from which you switched to FiveWin?

I'm an old dBase II/Clipper head and take care of our self developed PPS/ERP application, which we migrate from 16-Bit Clipper to a 32Bit xHarbour (console) in the past two years.

Now, since spring 2009, we are migrating to a MDI windows application using FivWin.

Before we come to this decision, we have evaluated some other development directions resp. IDE`s, like:
- GTWVW
- GTWVG
- Harbour Mini GUI and comparable
- X'ailer (Antonio, why this word without an apostroph will be deleted? :-))
- Visual xHarbour
- Visual FoxPro
- CodeGear Delphi
- Visual Basic
- PHP

The main reasons, why we think that FiveWin suits our needs best, are:
- An existing community, many thanks to you and all the others
- We only have to redesign the GUI, we can use most of the business code without changes
- Existing powerful objects and functions, like xBrowse and all the others
- Performance and stability of the application with dbf's and ADS
- Using of standards, like *.rs, no proprietary IDE's, quasi open source
- Good value for money
- Access via Internet/Browser is not so important for us
Windows 11 Pro 22H2 22621.1848

Microsoft (R) Windows (R) Resource Compiler Version 10.0.10011.16384

Harbour 3.2.0dev (r2008190002)

FWH 23.10 x86
Posts: 1283
Joined: Fri Feb 10, 2006 02:34 PM
Re: xBrowse, ADS and 'SET DELETED ON'
Posted: Wed Aug 26, 2009 08:26 AM

Frank,

I did not see this thread of G.N. Rao and I found very interesting. I have responded on the same topic. -> viewtopic.php?f=3&t=9343&p=85272#p85272

Salutacions, saludos, regards

"...programar es fácil, hacer programas es difícil..."

UT Page -> https://carles9000.github.io/
Forum UT -> https://discord.gg/bq8a9yGMWh
HIX -> https://github.com/carles9000/hix

Continue the discussion