ordcondset, ordcreate help

53 views
Skip to first unread message

Luigi Ferraris

unread,
Sep 4, 2021, 12:07:36 PM9/4/21
to Harbour Users
Hi friends
I'm creating an index (unique bag name, .ntx) using ordcondset and ordcreate.
I need to create two different tags ( order name ).
Important: ordCondSet settings (arguments) are the same for both tags.

I don't remember if I need to use:  
   IF( ...ordCondSet( argument_list ) )
      ...ordCreate( argument_list ) // first order
      ...ordCreate( argument_list ) // second order
   ENDIF

   or
      IF( ...ordCondSet( argument_list ) )
      ...ordCreate( argument_list ) // first order
   ENDIF
   IF( ...ordCondSet( argument_list ) )
      ...ordCreate( argument_list ) // second order
   ENDIF

Best regards
Luigi

José M. C. Quintas

unread,
Sep 4, 2021, 12:14:00 PM9/4/21
to harbou...@googlegroups.com

I use command style.

INDEX ON ... TAG name

Check std.ch to see how to inform tag name.

José M. C. Quintas

Luigi Ferraris

unread,
Sep 4, 2021, 12:20:33 PM9/4/21
to Harbour Users
Hi José,
many thanks.
It seems I must use the second style where, for any tag,  I need to set ordCondSet.

Regards.
Luigi

José M. C. Quintas

unread,
Sep 4, 2021, 12:26:42 PM9/4/21
to harbou...@googlegroups.com

#command INDEX ON <key> [TAG <(tag)>] TO <(bag)> ;
               [FOR <for>] [WHILE <while>] [NEXT <next>] ;
               [RECORD <rec>] [<rest:REST>] [<all:ALL>] ;
               [EVAL <eval>] [EVERY <every>] [<unique: UNIQUE>] ;
               [<ascend: ASCENDING>] [<descend: DESCENDING>] ;
               [<add: ADDITIVE>] [<cur: USECURRENT>] [<cust: CUSTOM>] ;
               [<noopt: NOOPTIMIZE>] [<mem: MEMORY, TEMPORARY>] ;
               [<filter: USEFILTER>] [<ex: EXCLUSIVE>] => ;
         ordCondSet( <"for">, <{for}>, [<.all.>], <{while}>, ;
                     <{eval}>, <every>, RecNo(), <next>, <rec>, ;
                     [<.rest.>], [<.descend.>],, ;
                     [<.add.>], [<.cur.>], [<.cust.>], [<.noopt.>], ;
                     <"while">, [<.mem.>], [<.filter.>], [<.ex.>] ) ;;
         ordCreate( <(bag)>, <(tag)>, <"key">, <{key}>, [<.unique.>] )

José M. C. Quintas

--
--
You received this message because you are subscribed to the Google
Groups "Harbour Users" group.
Unsubscribe: harbour-user...@googlegroups.com
Web: http://groups.google.com/group/harbour-users

---
You received this message because you are subscribed to the Google Groups "Harbour Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to harbour-user...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/harbour-users/29b26be4-b825-4cdf-88ae-56d6f4b602dcn%40googlegroups.com.
Reply all
Reply to author
Forward
0 new messages