TDatabase Seek

TDatabase Seek

Postby Rick Lipkin » Wed Jun 30, 2021 12:29 pm

To All

I see Silvo ( seems ) to have a similar problem ...

What is the tDatabase equivalence of :

oDbf:SetOrder( "CustID" ) // understand this already

Set order to tag CustID
Seek cCustID // <----- here

oDbf:Seek cCustID ??

oDBf:GoTop()
oDBf:Find cCustID ??

I would rather use Seek than set a filter .....
Seek in traditional DBFCDX is much faster than using the Find command ..

Thanks

Rick Lipkin
User avatar
Rick Lipkin
 
Posts: 2665
Joined: Fri Oct 07, 2005 1:50 pm
Location: Columbia, South Carolina USA

Re: TDatabase Seek

Postby nageswaragunupudi » Wed Jun 30, 2021 2:28 pm

oDbf:Seek( cCustID )
Regards

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

Re: TDatabase Seek

Postby Rick Lipkin » Wed Jun 30, 2021 2:32 pm

Rao .. thanks

Rick Lipkin
User avatar
Rick Lipkin
 
Posts: 2665
Joined: Fri Oct 07, 2005 1:50 pm
Location: Columbia, South Carolina USA

Re: TDatabase Seek

Postby karinha » Wed Jun 30, 2021 2:36 pm

João Santos - São Paulo - Brasil - Phone: +55(11)95150-7341
User avatar
karinha
 
Posts: 7809
Joined: Tue Dec 20, 2005 7:36 pm
Location: São Paulo - Brasil

Re: TDatabase Seek

Postby James Bott » Thu Jul 01, 2021 4:50 pm

Rick,

You can always look at the source code for TDatabase (xbrowse.prg) to find all the method names and their passed parameters.
FWH 18.05/xHarbour 1.2.3/BCC7/Windows 10
User avatar
James Bott
 
Posts: 4840
Joined: Fri Nov 18, 2005 4:52 pm
Location: San Diego, California, USA

Re: TDatabase Seek

Postby James Bott » Thu Jul 01, 2021 9:16 pm

Rick,

Since you seem to be new to using OOP, may I recommend by two articles on OOP. They are somewhat dated since I wrote them 10 years ago, but still helpful to someone just getting started with OOP.

Introduction to Object-Oriented Programming Part 1 & Part 2

James
FWH 18.05/xHarbour 1.2.3/BCC7/Windows 10
User avatar
James Bott
 
Posts: 4840
Joined: Fri Nov 18, 2005 4:52 pm
Location: San Diego, California, USA

Re: TDatabase Seek

Postby Rick Lipkin » Fri Jul 02, 2021 1:10 pm

James

Thanks .. been using ADO on Sql Databases for years ... the reason I am using DBFCDX is I have a substantial contract to encrypt one of my Billing Apps for SC State gov that uses a MS Access backend ..

In order to create new and existing Invoices .. I have to ( on the fly ) dencrypt the Customer table .. and to do that I am creating a temp .dbf table on the local hard drive .. Since I mixing ADO and DBFCDX .. I pass the table object's between various modules and traditional .dbf syntax just would not work .. hence my interest in tDatabase.

Also ... migrating the application to Sql Server which is much more secure than ms access since Access is a local database that resides on the local un-secure file server.

Thanks

Rick Lipkin
User avatar
Rick Lipkin
 
Posts: 2665
Joined: Fri Oct 07, 2005 1:50 pm
Location: Columbia, South Carolina USA


Return to FiveWin for Harbour/xHarbour

Who is online

Users browsing this forum: No registered users and 69 guests

cron