Indexing Problem

This forum is for eXpress++ general support.
Post Reply
Message
Author
fransm
Posts: 11
Joined: Fri Feb 05, 2010 10:37 am

Indexing Problem

#1 Post by fransm »

Hi,

Can somebody pse help me with an indexing problem.

I am trying to create a combined index with the following code:

ordCreate("Fleet","FltDepot","Upper(Depot) + Upper(FltNo)" , ;
&(cStringBlock+"Upper(Depot) + Upper(FltNo)"+"}"),.f., .T. )

The "Depot" field is sorted correctly but, not the "Fltno" field. I have tried to use alltrim() and change the collation settings, but this has a minimal effect and does not seem to be any logic in the sort order.

This seems to be such a straight forward operation, that I think I might be missing something. Is there an issue with indexing that I don't know about ?

Alaska 1.9 355 - Hotfixes 1 - 19 installed
Express 1.9 255
Using CdxDbe

regards

Frans

User avatar
rdonnay
Site Admin
Posts: 4775
Joined: Wed Jan 27, 2010 6:58 pm
Location: Boise, Idaho USA
Contact:

Re: Indexing Problem

#2 Post by rdonnay »

What is in cStringBlock?
The eXpress train is coming - and it has more cars.

User avatar
RDalzell
Posts: 205
Joined: Thu Jan 28, 2010 6:57 am
Location: Alsip, Illinois USA

Re: Indexing Problem

#3 Post by RDalzell »

Frans,

Try:
ordCreate("Fleet", "FltDepot", "Upper(Depot) + Upper(FltNo)", , .f., .t. )

It appears that your intended codeblock is not properly formatted (depending upon the content of cStringBlock).

fransm
Posts: 11
Joined: Fri Feb 05, 2010 10:37 am

Re: Indexing Problem

#4 Post by fransm »

Hi Roger, Rick

This is cStringBlock

cStringBlock := ;
"{||IIF(Recno()%nNoRecs==0,oProgress:Update( (RecNo()/RecCount()) * 100), nil),"

Rick,

I tried your code but the result is still the same

regards

Frans

Post Reply