http://www.csdn.net/expert/topic/273/273997.shtm
解决方案 »
- 【弱弱的问】关于IOCP与客户端
- 穷人求助:怎样编辑Mask
- 两个显示器接到一台主机上,但显示不同内容
- 怎么样监视对硬盘的copy操作?
- TABLE来过滤产生了一些数据记录
- 大家帮忙看看!入门问题!!马上给分!!
- 请问在asp.net中怎么调用其它语言写的webservice?
- QuantumGrid 4.1 TcxTextEdit之 bug,不知道兄弟们有没有遇到过
- 哪里可以下载!或者哪里有比较好的报表控件,我下载了qexport192 控件,但是没有注册码,谁能够告诉我,另外送100分!
- 请问用FieldValues['Name']得到的空字段的值是什么类型?
- 请问有谁在红旗Linux 2.0桌面版上装过Kylix?
- 我想做一控件,请大家帮帮忙。
传递给存储过程ADOStoredProcChange ,重要的一句代码为:
GoToBookMark(Pointer(DBGridBlxx.SelectedRows.Items[I]))
供参考,这是从我的项目程序中copy的,有问题和我联系
[email protected] DBGridBlxx.SelectedRows.Count > 0 then
Begin
With DBGridBlxx.DataSource.DataSet do
Begin
For I := 0 to DBGridBlxx.SelectedRows.Count - 1 do
begin GoToBookMark(Pointer(DBGridBlxx.SelectedRows.Items[I])); With ADOStoredProcChange do
Begin
Parameters.ParamByName('@Ls_bh').Value := Ls_bh;
Parameters.ParamByName('@Ls_xmdm').Value :=
DBGridBlxx.DataSource.DataSet.FieldByName('xmdm').AsString;
Parameters.ParamByName('@Ls_Blbh').Value :=
DBGridBlxx.DataSource.DataSet.FieldByName('Blbh').AsString;
Parameters.ParamByName('@dt_date').Value :=
DateTimePickerCbsj.DateTime;
ExecProc;
end;
end;
end;
end;
begin
Dataset.book := dbgrid1.selectedrows.items[i];
// do your things
end;