xBrowse, ADS and 'SET DELETED ON'

xBrowse, ADS and 'SET DELETED ON'

Postby frose » 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
User avatar
frose
 
Posts: 392
Joined: Tue Mar 10, 2009 11:54 am
Location: Germany, Rietberg

Re: xBrowse, ADS and 'SET DELETED ON'

Postby nageswaragunupudi » Thu Aug 20, 2009 2: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
User avatar
nageswaragunupudi
 
Posts: 10625
Joined: Sun Nov 19, 2006 5:22 am
Location: India

Re: xBrowse, ADS and 'SET DELETED ON'

Postby frose » Fri Aug 21, 2009 7: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. :oops:

See source:
Code: Select all  Expand view
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 :D
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
User avatar
frose
 
Posts: 392
Joined: Tue Mar 10, 2009 11:54 am
Location: Germany, Rietberg

Re: xBrowse, ADS and 'SET DELETED ON'

Postby nageswaragunupudi » Fri Aug 21, 2009 8: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
User avatar
nageswaragunupudi
 
Posts: 10625
Joined: Sun Nov 19, 2006 5:22 am
Location: India

Re: xBrowse, ADS and 'SET DELETED ON'

Postby frose » 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
User avatar
frose
 
Posts: 392
Joined: Tue Mar 10, 2009 11:54 am
Location: Germany, Rietberg

Re: xBrowse, ADS and 'SET DELETED ON'

Postby Carles » Wed Aug 26, 2009 8: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
Skype -> https://join.skype.com/cnzQg3Kr1dnk
User avatar
Carles
 
Posts: 1134
Joined: Fri Feb 10, 2006 2:34 pm
Location: Barcelona


Return to FiveWin for Harbour/xHarbour

Who is online

Users browsing this forum: Google [Bot] and 76 guests