QuickDAO icon indicating copy to clipboard operation
QuickDAO copied to clipboard

Enumeration not working

Open gdirikgil opened this issue 1 year ago • 0 comments

Enumerations not work properly. Problem is in following block in Quick.DAO.Query Else code block remarked and enumeration field does not get value.

tkEnumeration :
begin
if (aValue.TypeInfo = System.TypeInfo(Boolean)) then
begin
if CompareText(string(aValue.AsVariant),'true') = 0 then Result := '1'
else Result := '0';
end
else
begin
//value := value;
// This can solve the problem
result:=aValue.AsOrdinal.ToString;
end;
end;

gdirikgil avatar Apr 24 '23 13:04 gdirikgil