OrdList() of OrdListAdd() ?

General Help regarding HMG, Compilation, Linking, Samples

Moderator: Rathinagiri

Post Reply
User avatar
AUGE_OHR
Posts: 2117
Joined: Sun Aug 25, 2019 3:12 pm
DBs Used: DBF, PostgreSQL, MySQL, SQLite
Location: Hamburg, Germany

OrdList() of OrdListAdd() ?

Post by AUGE_OHR »

hi,

we can use OrdListAdd() but how to get what we have add :?:
there seems no OrdList() under harbour to get Info ...

how in harbour :idea:
have fun
Jimmy
User avatar
gfilatov
Posts: 1116
Joined: Fri Aug 01, 2008 5:42 am
Location: Ukraine
Contact:

Re: OrdList() of OrdListAdd() ?

Post by gfilatov »

AUGE_OHR wrote: Wed Aug 11, 2021 8:54 am hi,

we can use OrdListAdd() but how to get what we have add :?:
there seems no OrdList() under harbour to get Info ...

how in harbour :idea:
Hi Jimmy,

I do it in the next approach: :arrow:

Code: Select all

  Local aTags := {}, aIndexes := {}
  Local i := 0

  WHILE !Empty( indname := ordName( ++i ) )
     AAdd( aTags, { indname, ordKey( i ), ordFor( i ) } )
  END

  IF OrdCount() > 0

    AEval( aTags, { |t| AAdd( aIndexes, t[1] ) } )

    MsgDebug( aIndexes )
  END
...
Hope that helps :idea:
Kind Regards,
Grigory Filatov

"Everything should be made as simple as possible, but no simpler." Albert Einstein
Post Reply