#1 2024-05-12 01:48:08

delphi_911
Member
Registered: 2018-06-11
Posts: 31

[Resolved]TDocVariant bug in mORMot2?

Here is a really simple code in mORMot1 is OK.

 
    v := TDocVariant.NewJSON('{"U":"ad","P":"12"}'); 
    s := v.U;  // ---  property not found here with mORMot2 

---------------
Regards,
YANG

Last edited by delphi_911 (2024-05-13 00:32:13)

Offline

#2 2024-05-12 13:52:30

ab
Administrator
From: France
Registered: 2010-06-21
Posts: 14,659
Website

Re: [Resolved]TDocVariant bug in mORMot2?

Which IDE are you using?

There is a bug in FPC 3.2.2.
As stated in the documentation: Note that FPC 3.2.2 has a regression with variant late binding - use FPC 3.2.2 fixes branch instead.
And several places in the forum.

Offline

#3 2024-05-12 18:34:39

delphi_911
Member
Registered: 2018-06-11
Posts: 31

Re: [Resolved]TDocVariant bug in mORMot2?

I'm using lazarus3.2+fpc3.2.2,I will try the fixes branch,Thanks!

Last edited by delphi_911 (2024-05-12 18:35:13)

Offline

Board footer

Powered by FluxBB