我用unidac5连接 sqlite3分别尝试用 integer 和 text类型储存原boolean类型的字段isimg。
在DELPHI XE3中这样读取uniquery1.FieldByName('isimg').AsBoolean;但报错'Cannot access field 'istrimrule' as type Boolean'查看data.db单元中的asboolean的源码为property AsBoolean: Boolean read GetAsBoolean write SetAsBoolean;
function TField.GetAsBoolean: Boolean;
begin
  raise AccessError('Boolean'); { Do not localize }
end;而tfield的子类如tstringfiled等才有GetAsBoolean的实现函数,因此用text存储时尝试这样写
 tstringfiled(uniquery1.FieldByName('isimg')).asboolean; 但仍然报同样错误。请教该如何操作,asboolean在使用sqlite3时确实无法使用吗?