On Mon, Sep 22, 2008 at 9:11 PM, Przemyslaw Czerpak <[EMAIL PROTECTED]> wrote:

> If you are using unique order bag names then ordBagName()
> should be enough. You do not have to use full path.

The file names are created unique.
BTW what do you think it's the better way to get unique file name in Harbour?

> But please remember that when you close order bag then it will not
> be updated automatically with table modifications so you can make
> it out of sync.
> If you are using it for temporary indexes then I suggest to use
> TEMPORARY clause in index command. Such index files are automatically
> removed after closing.

I'll do. They are temporary indexes used to "simulate" SQL selects as in:

#command SELECT * FROM <table> ORDER BY <key>                           ;
            [WHERE <for> ]                                                 ;
            [<all:ALL>]                                                    ;
            [WHILE <while>]                                                ;
            [INTO <into> ]                                                 ;
            [<unique: UNIQUE>]                                             ;
            [<ascend: ASC>]                                                ;
            [<descend: DESC>]                                              ;
         => ordCondSet( "", <{for}>,                                       ;
                        [<.all.>],                                         ;
                        <{while}>,                                         ;
                        , ,                                                ;
                        RECNO(), , ,                                       ;
                        .t., [<.descend.>],,.t. )
         ;
         ;  ordCreate(TEMPFIDX(), "CURSOR", <(key)>, <{key}>, [<.unique.>]);
         ; [ <into> := indexord() ]

best regards,
Lorenzo
_______________________________________________
Harbour mailing list
Harbour@harbour-project.org
http://lists.harbour-project.org/mailman/listinfo/harbour

Reply via email to