Dataset not in Edit or insert model |
答題得分者是:terrychen
|
zzmbeyond01
中階會員 發表:98 回覆:167 積分:53 註冊:2003-09-07 發送簡訊給我 |
大大:
with DBTableUnit.DBTableDM.FDDataSet do begin Open; FoundMI := Locate('OBJECTID', MICombobox.Text, []); if FoundMI = true then begin showmessage(MICombobox.Text ' 与 ' FDCombobox.Text ' 已经匹配!'); exit; end; //赋值 Insert ; Found02 := Locate('DH02', FDCombobox.Text, []); if FoundDH02 = true then begin if CanModify = true then //*************Dataset not in Edit or insert model************ FieldByName('OBJECTID').Value := MICombobox.Text //************************************************************** else showmessage('数据集只读!'); end else showmessage(' 不存在!'); end;怎么回事呢? |
terrychen
尊榮會員 發表:90 回覆:794 積分:501 註冊:2003-05-01 發送簡訊給我 |
|
zzmbeyond01
中階會員 發表:98 回覆:167 積分:53 註冊:2003-09-07 發送簡訊給我 |
本站聲明 |
1. 本論壇為無營利行為之開放平台,所有文章都是由網友自行張貼,如牽涉到法律糾紛一切與本站無關。 2. 假如網友發表之內容涉及侵權,而損及您的利益,請立即通知版主刪除。 3. 請勿批評中華民國元首及政府或批評各政黨,是藍是綠本站無權干涉,但這裡不是政治性論壇! |