Retro video games delivered to your door every month!
Click above to get retro games delivered to your door ever month!
X-Hacker.org- CLIPWKS -Spreadsheet Library - <b>lsortkey2()</b> <b>sortwks.prg</b> http://www.X-Hacker.org [<<Previous Entry] [^^Up^^] [Next Entry>>] [Menu] [About The Guide]
lsortkey2()                                                        SORTWKS.PRG
------------------------------------------------------------------------------------------
 Purpose
   Writes the secondary sort key out to the spreadsheet

 Syntax
   Lsortkey2( aSpreadsheet, cRange, cDirection )

 Parameters
   aSpreadsheet   - Spreadsheet handle array
   cRange         - Range of cells
   cDirection     - (A)scending or (D)escending

 Returns
   nStatus        -   0   = All ok
                     -5   = Invalid range
                     -6   = Invalid parameters

 Example
procedure main
    LOCAL aWks := Lcreate("TAXES.WK1")
    if !empty(aWks)
       LsortKey(aWks,"A1..A50","A")
       LsortKey2(aWks,"B1..B50","D")
       Lclose(aWks)
    endif
return

 Notes
   Lsortkey2() defines the secondary key that your spreadsheet should be
   sorted on.  The range may be sorted either (A)scending or (D)escending
   depending upon the needs of your application.

 Category
   Creating spreadsheet files

See Also: Lsortkey() Lsortrange()

Online resources provided by: http://www.X-Hacker.org --- NG 2 HTML conversion by Dave Pearson