pb中怎么用資料視窗實作多選功能,有沒有誰例子可以給我參考下。[email protected],謝謝
uj5u.com熱心網友回復:
於SQL中加入2個虛欄位, 例如SELECT *, 'N' AS checked, 'N' AS SeleAll
FROM TableName
調一下輸入模式為check box, 像下圖
uj5u.com熱心網友回復:
http://blog.csdn.net/caok/article/details/4039197uj5u.com熱心網友回復:
long ll_currentrowlong ll_j,ll_s
If row < 1 then Return
If row = 0 then
Return
Else
ll_currentrow = row
End if
ll_s = This.getselectedrow(0)
If keydown(keyshift!) then
If ll_s = 0 then
This.selectrow(ll_currentrow,true)
Else
This.selectrow(0,false)
If ll_currentrow > ll_s then
For ll_j = ll_s to ll_currentrow
This.selectrow(ll_j,true)
End for
Else
For ll_j = ll_s to ll_currentrow step - 1
This.selectrow(ll_j,true)
End for
End if
End if
Else
If keydown(keycontrol!) then
If this.isselected(ll_currentrow) then
This.selectrow(ll_currentrow,false)
Else
This.selectrow(ll_currentrow,true)
End if
Else
This.selectrow(0,false)
This.selectRow(ll_CurrentRow,true)
End if
End if
轉載請註明出處,本文鏈接:https://www.uj5u.com/shujuku/31460.html
標籤:DataWindow
上一篇:關于ole控制元件初始化問題
下一篇:求助PB12.5問題
