Page 1 of 1

Checking to see if Order Name Exist or Not on a CDX Index

Posted: Sun Dec 25, 2005 10:54 pm
by J-Bohanan
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
:?:

Posted: Sun Dec 25, 2005 11:52 pm
by Antonio Linares
Jim,

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

Code: Select all

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