D del小子 Unregistered / Unconfirmed GUEST, unregistred user! 2003-04-12 #3 我想在DBGrid中加入一个OLe链接 就是双击一次,就能把相应的word文档打开,怎么办?
R realLearning Unregistered / Unconfirmed GUEST, unregistred user! 2003-04-12 #4 procedure TForm1.DBGrid1DblClick(Sender: TObject); begin if DBgrid1.SelectedField.FieldName = '你双击的字段' then begin ShellExecute(handle,'open',关联的DOC文件名',nil,nil,SW_NORMAL); end; end;
procedure TForm1.DBGrid1DblClick(Sender: TObject); begin if DBgrid1.SelectedField.FieldName = '你双击的字段' then begin ShellExecute(handle,'open',关联的DOC文件名',nil,nil,SW_NORMAL); end; end;