Scope and temporary index

Post Reply
User avatar
Richard Chidiak
Posts: 946
Joined: Thu Oct 06, 2005 7:05 pm
Location: France
Contact:

Scope and temporary index

Post by Richard Chidiak »

Hello

I need to sort columns (xbrowse) for a scoped dbf

Is there a way of creating temporary index ? or should i copy the records to an array and browse the array ?

Thanks for the help

Richard
http://www.cbati.com

Uestudio
Fwh 13.05 Harbour 3.2 MSVC 2013
User avatar
James Bott
Posts: 4654
Joined: Fri Nov 18, 2005 4:52 pm
Location: San Diego, California, USA
Contact:

Re: Scope and temporary index

Post by James Bott »

Richard,

All you have to do is supply xBrowse with an array of record numbers. For details see this thread:

http://forums.fivetechsupport.com/viewt ... =3&t=19495

Regards,
James
demont frank
Posts: 167
Joined: Thu Mar 22, 2007 11:24 am

Re: Scope and temporary index

Post by demont frank »

Richard

From the Ng , Index command

WHILE <lCondition> specifies another condition that must be met by
each record as it is processed. As soon as a record is encountered that
causes the condition to fail, the INDEX command terminates. If a WHILE
clause is specified, the data is processed in the controlling order.
The WHILE condition is transient (i.e., it is not stored in the file and
not used for index updates and REINDEXing purposes). The WHILE clause
creates temporary orders, but these orders are not updated.


Frank
Post Reply