FiveTech Support Forums

FiveWin / Harbour / xBase community
Board index FiveWin for Harbour/xHarbour OrdKeyCount Problem
Posts: 883
Joined: Tue Oct 11, 2005 11:57 AM
OrdKeyCount Problem
Posted: Thu Dec 17, 2009 02:01 AM

Hi everyone

I'm having problems with a routine to rebuild my indexes.
Ordkeycount() is not returning the actual number of keys for a given CDX.

Is not a big problem, but it bothers me.
I'm using last xHarbour from FIVETECH

Any help would be appreciated.

From Chile
Adolfo

;-) Ji,ji,ji... buena la cosa... "all you need is code"

http://www.xdata.cl - Desarrollo Inteligente
----------
Asus TUF F15, 32GB Ram, 2 * 1 TB NVME M.2, GTX 1650
Posts: 9020
Joined: Thu Oct 06, 2005 08:17 PM
Re: OrdKeyCount Problem
Posted: Thu Dec 17, 2009 10:30 AM

I'm not aware of problems in OrdKeyCount() (I'm using it estensively in my apps). Can you show a sample demonstrating the problem you are facing?

EMG

Posts: 883
Joined: Tue Oct 11, 2005 11:57 AM
Re: OrdKeyCount Problem
Posted: Thu Dec 17, 2009 11:45 AM

Enrico...
Thanks for you interest.
I found the error, it was my mistake. While using OrdKeyCount on some opened DBF's I use an array of names and indexes, well the pointer to this array was mistaken.
It seems that working till late at nite, after a busy day was not a good idea.

Thanks

From Chile
Adolfo

;-) Ji,ji,ji... buena la cosa... "all you need is code"

http://www.xdata.cl - Desarrollo Inteligente
----------
Asus TUF F15, 32GB Ram, 2 * 1 TB NVME M.2, GTX 1650
Posts: 3107
Joined: Fri Oct 07, 2005 06:28 PM
Re: OrdKeyCount Problem
Posted: Thu Dec 17, 2009 11:51 AM

ADOLFO

INSERT ON MAIN AT TOP THESE LINES

REQUEST DBFCDX, DBFFPT
external ordkeyno, ordkeycount,ordcreate,ordkeygoto

Best Regards, Saludos



Falconi Silvio
Posts: 9020
Joined: Thu Oct 06, 2005 08:17 PM
Re: OrdKeyCount Problem
Posted: Thu Dec 17, 2009 12:17 PM
Adolfo wrote:It seems that working till late at nite, after a busy day was not a good idea.


:-)

EMG

Continue the discussion