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

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

Postby J-Bohanan » 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
:?:
J-Bohanan
 
Posts: 23
Joined: Wed Oct 26, 2005 11:26 pm
Location: Knoxville, TN (USA)

Postby Antonio Linares » Sun Dec 25, 2005 11:52 pm

Jim,

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

Code: Select all  Expand view  RUN
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
User avatar
Antonio Linares
Site Admin
 
Posts: 42111
Joined: Thu Oct 06, 2005 5:47 pm
Location: Spain


Return to FiveWin for Harbour/xHarbour

Who is online

Users browsing this forum: Natter, Silvio.Falconi and 85 guests