在线的朋友帮帮忙,头太晕了,错误找不到????????
try
jq.Close; //jq为一个Query的别名
jq.ParamByName('zhang').Value:=DBEdit1.Text;
jq.Prepare;
jq.Open;
if jq.FieldByName('zh_num').Value=DBEdit1.Text then showmessage('zh_j_look for failure!');//这句没被执行
if jq.RecordCount>0 then //这句好象jq.RecordCount一直不大于0
begin
Edit4.Text:=zhq.FieldValues['zh_num'];
showmessage('j_ok');
end
else showmessage('j_look for failure!');//而这句却老被执行
except
showmessage('查找节名时出错!');
end;