
Click above to get retro games delivered to your door ever month!
X-Hacker.org- CLIPWKS -Spreadsheet Library - <b>lsortkey()</b> <b>sortwks.prg</b>
[<<Previous Entry] [^^Up^^] [Next Entry>>] [Menu] [About The Guide]
lsortkey() SORTWKS.PRG
------------------------------------------------------------------------------------------
Purpose
Writes the primary sort key out to the spreadsheet
Syntax
Lsortkey( aWks, 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")
Lclose(aWks)
endif
return
Notes
Lsortkey() defines the primary 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: Lsortkey2() Lsortrange()
Online resources provided by: http://www.X-Hacker.org --- NG 2 HTML conversion by Dave Pearson