function to build filters

function to build filters

Postby lucasdebeltran » Sun Jan 04, 2015 11:46 am

Hello friends,

I'm looking for a function to filter in a dbf, that allows for various conditions, and or in the subsequent conditions, different operators, etc., so that the user can be dynamically building the filter.

Is there anything ?. Thank you very much and happy 2015.
Muchas gracias. Many thanks.

Un saludo, Best regards,

Harbour 3.2.0dev, Borland C++ 5.82 y FWH 13.06 [producción]

Implementando MSVC 2010, FWH64 y ADO.

Abandonando uso xHarbour y SQLRDD.
User avatar
lucasdebeltran
 
Posts: 1303
Joined: Tue Jul 21, 2009 8:12 am

Re: function to build filters

Postby Enrico Maria Giordano » Sun Jan 04, 2015 2:02 pm

Code: Select all  Expand view
INDEX ON ... TO ... FOR cCondition


EMG
User avatar
Enrico Maria Giordano
 
Posts: 8378
Joined: Thu Oct 06, 2005 8:17 pm
Location: Roma - Italia

Re: function to build filters

Postby lucasdebeltran » Sun Jan 04, 2015 2:18 pm

I mean the dialog with field, operator and condition... function that processs and verifies the condition, operator and field type...
Muchas gracias. Many thanks.

Un saludo, Best regards,

Harbour 3.2.0dev, Borland C++ 5.82 y FWH 13.06 [producción]

Implementando MSVC 2010, FWH64 y ADO.

Abandonando uso xHarbour y SQLRDD.
User avatar
lucasdebeltran
 
Posts: 1303
Joined: Tue Jul 21, 2009 8:12 am

Re: function to build filters

Postby Enrico Maria Giordano » Sun Jan 04, 2015 2:31 pm

Lucas,

I don't know, sorry.

EMG
User avatar
Enrico Maria Giordano
 
Posts: 8378
Joined: Thu Oct 06, 2005 8:17 pm
Location: Roma - Italia

Re: function to build filters

Postby lucasdebeltran » Sun Jan 04, 2015 2:35 pm

No problem.

It also can be paid.
Muchas gracias. Many thanks.

Un saludo, Best regards,

Harbour 3.2.0dev, Borland C++ 5.82 y FWH 13.06 [producción]

Implementando MSVC 2010, FWH64 y ADO.

Abandonando uso xHarbour y SQLRDD.
User avatar
lucasdebeltran
 
Posts: 1303
Joined: Tue Jul 21, 2009 8:12 am

Re: function to build filters

Postby nageswaragunupudi » Sun Jan 04, 2015 2:37 pm

Have you checked fivedbu ?
Regards

G. N. Rao.
Hyderabad, India
User avatar
nageswaragunupudi
 
Posts: 10308
Joined: Sun Nov 19, 2006 5:22 am
Location: India

Re: function to build filters

Postby lucasdebeltran » Sun Jan 04, 2015 2:54 pm

Yes but that routine is not finished, Does not verify expresions, field types and operators...
Muchas gracias. Many thanks.

Un saludo, Best regards,

Harbour 3.2.0dev, Borland C++ 5.82 y FWH 13.06 [producción]

Implementando MSVC 2010, FWH64 y ADO.

Abandonando uso xHarbour y SQLRDD.
User avatar
lucasdebeltran
 
Posts: 1303
Joined: Tue Jul 21, 2009 8:12 am

Re: function to build filters

Postby Enrico Maria Giordano » Sun Jan 04, 2015 3:13 pm

Lucas,

you can test them using TRY/CATCH/END.

EMG
User avatar
Enrico Maria Giordano
 
Posts: 8378
Joined: Thu Oct 06, 2005 8:17 pm
Location: Roma - Italia

Re: function to build filters

Postby Silvio.Falconi » Sun Jan 04, 2015 6:13 pm

Two years ago I asked to insert on xbrowse a small filter to use on xbrowse easy.
After some work ( it is was not a interest for anyone) I made a small Class Tfilter to use with xbrowse

Image

the procedure need only the obrw object and the procedure save on memory : fields,Headers and type of fields and with this data you can create the filter as you can see on picture
You can save all filter created on ini file and call from your procedure easy
It save on file ini
if you want try it send to me a msg.
Since from 1991/1992 ( fw for clipper Rel. 14.4 - Momos)
I use : FiveWin for Harbour November 2023 - January 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
User avatar
Silvio.Falconi
 
Posts: 6849
Joined: Thu Oct 18, 2012 7:17 pm

Re: function to build filters

Postby lucasdebeltran » Sun Jan 04, 2015 6:17 pm

Yes please
Muchas gracias. Many thanks.

Un saludo, Best regards,

Harbour 3.2.0dev, Borland C++ 5.82 y FWH 13.06 [producción]

Implementando MSVC 2010, FWH64 y ADO.

Abandonando uso xHarbour y SQLRDD.
User avatar
lucasdebeltran
 
Posts: 1303
Joined: Tue Jul 21, 2009 8:12 am

Re: function to build filters

Postby Gross » Sun Jan 04, 2015 7:47 pm

Can you send me the class?
That's exactly what I'm looking for a long time.

Thank You!
Manfred
Manfred Groß
Gross
 
Posts: 41
Joined: Sat Mar 09, 2013 8:17 am
Location: Germany Kassel

Re: function to build filters

Postby elvira » Mon Jan 05, 2015 4:23 pm

Me too please :D :D .

Or maybe it´s better to post in the forums, as the Rating class.

In my opinion, this class TFilter is more useful and we should help Silvio to debug it!!!!.
elvira
 
Posts: 516
Joined: Fri Jun 29, 2012 12:49 pm

Re: function to build filters

Postby Silvio.Falconi » Mon Jan 05, 2015 11:11 pm

this week I recompiled my sources and I found a strange error nEditTypes .. I dont Know I asked to Nages
Since from 1991/1992 ( fw for clipper Rel. 14.4 - Momos)
I use : FiveWin for Harbour November 2023 - January 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
User avatar
Silvio.Falconi
 
Posts: 6849
Joined: Thu Oct 18, 2012 7:17 pm

Re: function to build filters

Postby Silvio.Falconi » Mon Jan 05, 2015 11:57 pm

Sorry ...I found the error give me this tonight to recompiled all sources and make some tries ...
Since from 1991/1992 ( fw for clipper Rel. 14.4 - Momos)
I use : FiveWin for Harbour November 2023 - January 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
User avatar
Silvio.Falconi
 
Posts: 6849
Joined: Thu Oct 18, 2012 7:17 pm

Re: function to build filters

Postby lucasdebeltran » Tue Jan 06, 2015 10:21 am

Great, thank you Silvio.

If you post here the samples, several people can help to test it.
Muchas gracias. Many thanks.

Un saludo, Best regards,

Harbour 3.2.0dev, Borland C++ 5.82 y FWH 13.06 [producción]

Implementando MSVC 2010, FWH64 y ADO.

Abandonando uso xHarbour y SQLRDD.
User avatar
lucasdebeltran
 
Posts: 1303
Joined: Tue Jul 21, 2009 8:12 am

Next

Return to FiveWin for Harbour/xHarbour

Who is online

Users browsing this forum: No registered users and 37 guests