FiveTech Support Forums

FiveWin / Harbour / xBase community
Board index FiveWin for Harbour/xHarbour TDolphin:Seek() question?
Posts: 1598
Joined: Fri Oct 07, 2005 05:56 PM
TDolphin:Seek() question?
Posted: Wed Jul 16, 2014 09:29 AM
Dear All,

I try to use Tdolphin:Seek() but I've got many question that comparison with DbSeek() function.

1. ::Seek( cString, oQry:FIELDNAME )
1.1 how to seek with expression (an example didn't success)
Code (fw): Select all Collapse
RT0:Seek( RMT:RMT_CODE+dtos(dStart) , "RTA_RMTY+dtos(RTA_DATE)" )

1.2 how to seek DATE field
2. After Open Table with out specific qurey ( ::Query( 'select * from dbtable') )
2.1 how to ReQuery after open table (alike dbsetfilter())

Thanks for any idea.
Regards,

Dutch



FWH 2304 / xHarbour Simplex 1.2.3 / BCC73 / Pelles C / UEStudio

FWPPC 10.02 / Harbour for PPC (FTDN)

ADS V.9 / MySql / MariaDB

R&R 12 Infinity / Crystal Report XI R2

(Thailand)
Posts: 1598
Joined: Fri Oct 07, 2005 05:56 PM
Re: TDolphin:Seek() question?
Posted: Sun Jul 20, 2014 12:13 PM
  • Has anyone got an idea about seek?
  • Has it must be got an index?

Thanks for any idea and help.

Regards,
Dutch

Regards,

Dutch



FWH 2304 / xHarbour Simplex 1.2.3 / BCC73 / Pelles C / UEStudio

FWPPC 10.02 / Harbour for PPC (FTDN)

ADS V.9 / MySql / MariaDB

R&R 12 Infinity / Crystal Report XI R2

(Thailand)
Posts: 2365
Joined: Wed Nov 02, 2005 11:46 PM
Re: TDolphin:Seek() question?
Posted: Sun Jul 20, 2014 04:10 PM
Hello

Sorry for delay...

you first should understand the differences between DBF and SQL, them are not same
TDolphin is a tool to do more easy work with mysql, using method we know (like SEEK, LOCATE, END, BOTTOM, FIRST,e tc) to handle the recordset, it not means that dolphin handle the MYSQL the same way like a DBF

1.
you can use SEEK on a field(s) of a query ordered by it or them,
the seek not work over date field, convert to string it inside the query and seek over it...
look sample : https://bitbucket.org/danielgarciagil/tdolphin/src/d9d98a01d60923d0958c93fd23d7e8b84ff34a8e/samples/testseek.prg?at=master
2.
the tables in mysql do not open, use a recordset
Posts: 1598
Joined: Fri Oct 07, 2005 05:56 PM
Re: TDolphin:Seek() question?
Posted: Mon Jul 21, 2014 02:43 AM
Dear Daniel,

Thank you so much. I get more idea and more understanding now.
Daniel Garcia-Gil wrote:Hello

Sorry for delay...

you first should understand the differences between DBF and SQL, them are not same
TDolphin is a tool to do more easy work with mysql, using method we know (like SEEK, LOCATE, END, BOTTOM, FIRST,e tc) to handle the recordset, it not means that dolphin handle the MYSQL the same way like a DBF

1.
you can use SEEK on a field(s) of a query ordered by it or them,
the seek not work over date field, convert to string it inside the query and seek over it...
look sample : https://bitbucket.org/danielgarciagil/tdolphin/src/d9d98a01d60923d0958c93fd23d7e8b84ff34a8e/samples/testseek.prg?at=master
2.
the tables in mysql do not open, use a recordset
Regards,

Dutch



FWH 2304 / xHarbour Simplex 1.2.3 / BCC73 / Pelles C / UEStudio

FWPPC 10.02 / Harbour for PPC (FTDN)

ADS V.9 / MySql / MariaDB

R&R 12 Infinity / Crystal Report XI R2

(Thailand)

Continue the discussion