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

Post Reply
J-Bohanan
Posts: 23
Joined: Wed Oct 26, 2005 11:26 pm
Location: Knoxville, TN (USA)

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

Post 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
:?:
User avatar
Antonio Linares
Site Admin
Posts: 37481
Joined: Thu Oct 06, 2005 5:47 pm
Location: Spain
Contact:

Post 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
regards, saludos

Antonio Linares
www.fivetechsoft.com
Post Reply