Page 1 of 1

class "TZDoubleField" not found

Posted: 13.04.2024, 12:38
by cappelletto
It gives me this error when I launch the application with lazarus 2.3. It used to work fine, then it started giving me this error.
How do I solve it?

I am doing some testing, in new projects it works.

UPDATE
The problem occurs on a project ported from zeos 7.2.x. The strange thing is that it worked first but then it started giving this error. What could it be? At design time it works correctly, the problem appears when the zeos components are created at runtime


p.s. I also posted this problem on the lazarus forum

Re: class "TZDoubleField" not found

Posted: 14.04.2024, 10:10
by cappelletto
By regenerating the persistent fields, the problem disappeared. This is strange, I'll see if I can figure out the cause

Re: class "TZDoubleField" not found

Posted: 14.04.2024, 11:39
by marsupilami
Hello cappelletto,

with persistent fields these things can happen. Zeos 8 introduced new field capabilitis and it changed the reules about which field type gets generated at which time.

Best regards,

Jan

Re: class "TZDoubleField" not found

Posted: 14.04.2024, 13:41
by cappelletto
They were down recreated in the new format. Everything was okay, then I don't know what happened. It may be that I did something, now I will try again and if I find any error I will let you know.

Re: class "TZDoubleField" not found

Posted: 14.04.2024, 17:57
by cappelletto
It works, I don't know what happened before, but now it goes. I probably must have inadvertently done something wrong myself.