FiveTech Support Forums

FiveWin / Harbour / xBase community
Board index FiveWin for Harbour/xHarbour Scope and temporary index
Posts: 946
Joined: Thu Oct 06, 2005 07:05 PM

Scope and temporary index

Posted: Wed Aug 04, 2010 09:30 AM

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
Posts: 4840
Joined: Fri Nov 18, 2005 04:52 PM

Re: Scope and temporary index

Posted: Wed Aug 04, 2010 12:53 PM

Richard,

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

viewtopic.php?f=3t=19495

Regards,
James

&

FWH 18.05/xHarbour 1.2.3/BCC7/Windows 10
Posts: 167
Joined: Thu Mar 22, 2007 11:24 AM

Re: Scope and temporary index

Posted: Mon Aug 09, 2010 03:50 PM

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

Continue the discussion