Does TDatabase supports SEEK LAST?

Post Reply
hua
Posts: 1072
Joined: Fri Oct 28, 2005 2:27 am

Does TDatabase supports SEEK LAST?

Post by hua »

Looking at TDatabase of FWH1912, I don't see support for 3rd param for dbSeek(). It is the equivalent of SEEK LAST
Is this rectified in latest version of FWH?
FWH 11.08/FWH 19.12
BCC5.82/BCC7.3
xHarbour/Harbour
User avatar
nageswaragunupudi
Posts: 10691
Joined: Sun Nov 19, 2006 5:22 am
Location: India
Contact:

Re: Does TDatabase supports SEEK LAST?

Post by nageswaragunupudi »

Please try

Code: Select all | Expand

oDbf:DbSeek( cSeek, nil, .T. )
This works with FWH1912 also,
Don't bother if you can not find the method DbSeek()
With database class we call use any (x)Harbour function as if it is a method, if that function is linked to the application.

Note:
If you get runtime error, just include this line anywhere at the end of your prg

Code: Select all | Expand

EXTERNAL DBSEEK
Regards

G. N. Rao.
Hyderabad, India
hua
Posts: 1072
Joined: Fri Oct 28, 2005 2:27 am

Re: Does TDatabase supports SEEK LAST?

Post by hua »

Thanks Rao,
Saved me a few keystrokes :)
I normally would type as (oDbf:cAlias)->(dbSeek(cSeek, nil, .t.))
FWH 11.08/FWH 19.12
BCC5.82/BCC7.3
xHarbour/Harbour
User avatar
nageswaragunupudi
Posts: 10691
Joined: Sun Nov 19, 2006 5:22 am
Location: India
Contact:

Re: Does TDatabase supports SEEK LAST?

Post by nageswaragunupudi »

Not only DBSEEK,
You can use any (x)Harbour function as if it is a METHOD.
Regards

G. N. Rao.
Hyderabad, India
User avatar
James Bott
Posts: 4840
Joined: Fri Nov 18, 2005 4:52 pm
Location: San Diego, California, USA
Contact:

Re: Does TDatabase supports SEEK LAST?

Post by James Bott »

Saved me a few keystrokes :)
I normally would type as (oDbf:cAlias)->(dbSeek(cSeek, nil, .t.))
If you use database objects then you can just do:

oCustomer:goBottom()
FWH 18.05/xHarbour 1.2.3/BCC7/Windows 10
User avatar
nageswaragunupudi
Posts: 10691
Joined: Sun Nov 19, 2006 5:22 am
Location: India
Contact:

Re: Does TDatabase supports SEEK LAST?

Post by nageswaragunupudi »

He is using database object.
But he is not looking for DbGoBottom()
He is looking for

Code: Select all | Expand

SEEK cSeek LAST // i.e., DBSEEK( cSeek, nil, .T. )
which is totally different from "GoBottom()"
Regards

G. N. Rao.
Hyderabad, India
Post Reply