SelectInfo.ActiveTable := BookData.adoqBookDoc;
With SelectInfo.ActiveTable do
begin
l_string := TStringList.Create;
GetFieldNames(l_string);
if l_string.IndexOf('content') = -1 then
ShowMessage('l_string.Strings[i]'); //在这没有错,说明有这个字段
if FieldByName('Content').IsNull then Exit; //在这报错
错误提示:adoqBookDoc:Field 'Content' not found 不明白,为什么?上面检测是有这个字段,有为什么还报这样的错
With SelectInfo.ActiveTable do
begin
l_string := TStringList.Create;
GetFieldNames(l_string);
if l_string.IndexOf('content') = -1 then
ShowMessage('l_string.Strings[i]'); //在这没有错,说明有这个字段
if FieldByName('Content').IsNull then Exit; //在这报错
错误提示:adoqBookDoc:Field 'Content' not found 不明白,为什么?上面检测是有这个字段,有为什么还报这样的错
ShowMessage('l_string.Strings[i]'); //在这没有错,并不一定说明有这个字段