[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[amibroker] osTabSort from Osaka Table



PureBytes Links

Trading Reference Links

Can one of you Osaka folks please explain the meaning of the many 
parameters listed in the Osaka docs for the osTabSort function?  I see that 
Andrew Perrin gave a very nice code example of using Osaka Tables, in msg 
#50457.

Below is a snippet of Andrew's code from that msg.  What, please, are the 
meanings of the four parameters that Andrew has passed to osTabSort?

My best guesses are:
1) sRank = the ID of the table that Andrew opened and named sRank
2) i = the column number of the sRank table that gets first priority in 
sorting the rows
3) False = sort by descending order instead of the default ascending order
4) True = ?????   I expected here to see a 2nd column number for use as a 
secondary sort key, not the boolean that was used here.

     -Paul

// ----------------------------------
// Sorting rank calculations
// ----------------------------------

k = StartBar;
i = 0;
while (k <= Finishbar)
{
osTabSort(sRank, i, False, True);
RankValue[k] = osTabGet(Rank_No-1, i, sRank);
i = i + 1;
k = k + 1;
}

FWIW, here is a copy of Joe Osaka's documentation for that function:

NUMBER osTabSort( NUMBER tableid, NUMBER Col1, Number Asc1 = TRUE, NUMBER 
Col2 = Null, NUMBER Asc2 = TRUE, NUMBER Col3 = Null, NUMBER Asc3 = TRUE, 
NUMBER Col4 = Null, NUMBER Asc4 = TRUE, NUMBER Col5 = Null, NUMBER Asc5 = 
TRUE )
//  Sorts table by multiple columns (from 1 to 5)
//  numeric columns are sorted numerically, strings are storted 
alphabetically (case insensitive)



[Non-text portions of this message have been removed]



------------------------ Yahoo! Groups Sponsor --------------------~--> 
$9.95 domain names from Yahoo!. Register anything.
http://us.click.yahoo.com/J8kdrA/y20IAA/yQLSAA/GHeqlB/TM
--------------------------------------------------------------------~-> 

Check AmiBroker web page at:
http://www.amibroker.com/

Check group FAQ at: http://groups.yahoo.com/group/amibroker/files/groupfaq.html 
Yahoo! Groups Links

<*> To visit your group on the web, go to:
    http://groups.yahoo.com/group/amibroker/

<*> To unsubscribe from this group, send an email to:
    amibroker-unsubscribe@xxxxxxxxxxxxxxx

<*> Your use of Yahoo! Groups is subject to:
    http://docs.yahoo.com/info/terms/