QuickDAO
QuickDAO copied to clipboard
Enumeration not working
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 : beginif (aValue.TypeInfo = System.TypeInfo(Boolean)) thenbeginif CompareText(string(aValue.AsVariant),'true') = 0 then Result := '1'else Result := '0';endelsebegin//value := value;// This can solve the problemresult:=aValue.AsOrdinal.ToString;end;end;