線上訂房服務-台灣趴趴狗聯合訂房中心
發文 回覆 瀏覽次數:2317
推到 Plurk!
推到 Facebook!

sasg.zip

 
領航天使
站長


發表:12216
回覆:4186
積分:4084
註冊:2001-07-25

發送簡訊給我
#1 引用回覆 回覆 發表時間:2001-01-01 12:00:00 IP:0.0.xxx.xxx 未訂閱
檔案名稱:sasg.zip 版 本:1.1.0 原始程式:有(Source) 適用版本:(D1) 版權種類:免費軟體(FreeWare) 內容說明: SortAStringGrid Component. Sort a StringGrid anyway you like, Horizontal/Vertical, Ascending/Descending, Character/Numeric 用來排序 StringGrid 的元件, 並可指定垂直, 水平, 遞增, 遞減, 字元或數字等條件來排序.
------
~~~Delphi K.Top討論區站長~~~
附加檔案:e/sasg.zip
bugmans
高階會員


發表:95
回覆:322
積分:188
註冊:2003-04-12

發送簡訊給我
#2 引用回覆 回覆 發表時間:2007-03-30 20:45:59 IP:125.225.xxx.xxx 未訂閱
相同的介紹http://delphi.ktop.com.tw/board.php?cid=75&fid=433&tid=12560
下載位置http://www.programmers.net/mirrors/DSP/ftp/d10free/ , 全文搜尋 sasg.zip
節錄說明檔的內容
properties :
GridToSort You can doubleclick in the Object Editor to get the name of the stringgrid you want to sort.
(If you have multiple stringgrids, you might have to doubleclickmultiple times)
指定哪一個stringgrid進行排序
SortIndex Column or Row that contains the sortkey
StartIndex First Column or Row to be sorted
EndIndex Last Column or Row to be sorted
SortType Can be Character, Numeric or Date. If you have a grid filled with numbers and you sort
them as characters, then 9 would be greater than 1000. So if you choose Numeric,
1000 will be greater then 9.
可針對字元,數字,日期來進行排序
CaseSensitiv If SortType is Character, you can set this property to true or false to enable or disable case sensitivity.
是否忽略大小寫
SortDirection Can be Ascending or Descending.
遞增或遞減
HowToSort Can be Row or Column.
D A C B And SortIndex := 1,
B C A D StartIndex := 1,
A B D C EndIndex := 4
C D B A
After a Sort with HowToSort := Row the grid will look like this (Sorted from Top to Bottom Row)
B C A D
D A C B
After a Sort with HowToSort := Column the grid will look like this (Sorted from Left to Right Column)
A B C D 以第一列來排序
C D A B
B C D A
D A B C
ShowMessageOnError
錯誤訊息

系統時間:2024-04-24 12:38:04
聯絡我們 | Delphi K.Top討論版
本站聲明
1. 本論壇為無營利行為之開放平台,所有文章都是由網友自行張貼,如牽涉到法律糾紛一切與本站無關。
2. 假如網友發表之內容涉及侵權,而損及您的利益,請立即通知版主刪除。
3. 請勿批評中華民國元首及政府或批評各政黨,是藍是綠本站無權干涉,但這裡不是政治性論壇!