这个问题怎么办,高手近来帮帮忙吧!(关于DBGridEH2.4)

rzg 2002-11-07 04:42:04
我在使用TDBLookupEH时候,当我关联ListSource之后总是出现莫名其妙的错误!错误的地方在下面的代码中:
function TCustomDBLookupComboboxEh.LocateKey: Boolean;
var
KeySave: Variant;
begin
Result := False;
try
KeySave := FKeyValue;
if not VarIsEmpty(FKeyValue) then
if not VarIsNull(FKeyValue) then
if FListLink.DataSet<>nil then
if FListLink.DataSet.Active then
if CompatibleVarValue(FKeyFields, FKeyValue) then
if FListLink.DataSet.Locate(FKeyFieldName, FKeyValue, []) then
begin
Result := True;
FKeyValue := KeySave;
end;
except

end;
end;
中的“if FListLink.DataSet.Locate(FKeyFieldName, FKeyValue, []) then
”这一句。为什么呀?
...全文
29 1 打赏 收藏 转发到动态 举报
写回复
用AI写文章
1 条回复
切换为时间正序
请发表友善的回复…
发表回复
flyingkiller 2002-11-20
  • 打赏
  • 举报
回复
老兄,具体情况请说清楚点。

5,388

社区成员

发帖
与我相关
我的任务
社区描述
Delphi 开发及应用
社区管理员
  • VCL组件开发及应用社区
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告
暂无公告

试试用AI创作助手写篇文章吧