[fpc-devel] SetPropValue case sensitive
Leonardo M. Ramé
martinrame at yahoo.com
Tue May 5 19:48:45 CEST 2009
I studied a little deeper and the problem is (according to FPC 2.2.2 manual) that SetPropValue doesn't work because Variants are not implemented yet.
The solution was easy, I used SetStrProp instead of SetPropValue. In my program all published properties were strings.
Can you confirm if it is implemented in newer versions?
Leonardo M. Ramé
http://leonardorame.blogspot.com
--- On Tue, 5/5/09, Sergei Gorelkin <sergei_gorelkin at mail.ru> wrote:
> From: Sergei Gorelkin <sergei_gorelkin at mail.ru>
> Subject: Re: [fpc-devel] SetPropValue case sensitive
> To: "FPC developers' list" <fpc-devel at lists.freepascal.org>
> Date: Tuesday, May 5, 2009, 2:44 PM
> Leonardo M. Ramé wrote:
> > I found a difference between Delphi's SetPropValue
> function with its counterpart in FPC. In Delphi, this
> function is case insensitive, while in fpc it is case
> sensitive.
> >
> > Am I correct?
> >
> The property name comparison (ending up in
> GetPropInfo(TypeInfo: PTypeInfo; const PropName: string),
> rtl/objpas/typinfo.pp line 571) is done case-insensitive,
> unless there is a bug somewhere.
> Can you provide code snippet illustrating the difference?
>
> Sergei
>
> _______________________________________________
> fpc-devel maillist - fpc-devel at lists.freepascal.org
> http://lists.freepascal.org/mailman/listinfo/fpc-devel
>
More information about the fpc-devel
mailing list