Re: [fpc-pascal] GetPropValue and Unknown property

2009-06-23 Thread Antonio Sanguigni
2009/6/23 Leonardo M. Ramé : > Yes, Mattias is right, I copied-pasted-removed some stuff from one of my > programs and leaved out the FreeMem part. > > This is a modified version: Thanks both guys for your help. The problem was really simple, I mean, the library I'm using has a class with publis

Re: [fpc-pascal] GetPropValue and Unknown property

2009-06-23 Thread Leonardo M . Ramé
ct: Re: [fpc-pascal] GetPropValue and Unknown property Zitat von "Leonardo M. Ramé" : > > > > How are you filling the ASortProps array? if it is by hand, you have to take > care of Case Sensitivity of property names. > > You can use this function to know the p

Re: [fpc-pascal] GetPropValue and Unknown property

2009-06-23 Thread Mattias Gärtner
Zitat von "Leonardo M. Ramé" : How are you filling the ASortProps array? if it is by hand, you have to take care of Case Sensitivity of property names. You can use this function to know the published properties of any class. Try it inside your DoCompareProps, passing TFTPListRec(AItem

Re: [fpc-pascal] GetPropValue and Unknown property

2009-06-23 Thread Leonardo M . Ramé
How are you filling the ASortProps array? if it is by hand, you have to take care of Case Sensitivity of property names. You can use this function to know the published properties of any class. Try it inside your DoCompareProps, passing TFTPListRec(AItem1).ClassType as param, if AItem1 is an