Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

Enumeration not working #6

Open
gdirikgil opened this issue Apr 24, 2023 · 0 comments
Open

Enumeration not working #6

gdirikgil opened this issue Apr 24, 2023 · 0 comments

Comments

@gdirikgil
Copy link

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;

# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant