FiveTech Support Forums

FiveWin / Harbour / xBase community
Board index FiveWin for Harbour/xHarbour Checking to see if Order Name Exist or Not on a CDX Index
Posts: 23
Joined: Wed Oct 26, 2005 11:26 PM
Checking to see if Order Name Exist or Not on a CDX Index
Posted: Sun Dec 25, 2005 10:54 PM

I am Looking for a way to load the Order bag Names and the key, and
the for from a CDX Index into a Arrary for Checking. I wish to see if
the Order bag Name is in the Index or not. I know how to create a new
Order bag Name, and Delete the Name. But can you load the Information
from the CDX Index for checking, and displaying.

Thank you
Jim

:?:

Posts: 44162
Joined: Thu Oct 06, 2005 05:47 PM
Checking to see if Order Name Exist or Not on a CDX Index
Posted: Sun Dec 25, 2005 11:52 PM
Jim,

This code from FWH/ErrSysW.prg may help you:

for j = 1 to 15
   if ! Empty( ( Alias( n ) )->( IndexKey( j ) ) )
      cErrorLog += Space( 8 ) + ;
            If( ( Alias( n ) )->( IndexOrd() ) == j, "=> ", "   " ) + ;
            PadR( ( Alias( n ) )->( IndexKey( j ) ), 35 ) + ;
            ( Alias( n ) )->( OrdName( j ) ) + ;
            CRLF
  endif
next
regards, saludos

Antonio Linares
www.fivetechsoft.com

Continue the discussion