fabriciocolombo / delphi-rest-client-api

A Delphi REST client API to consume REST services written in any programming language.
Apache License 2.0
380 stars 182 forks source link

Delphi 2010 Package Installation Problem #101

Open mad85 opened 6 years ago

mad85 commented 6 years ago

image

Dzenik commented 6 years ago

patch.zip This can help you.

jzapater commented 6 years ago

I applied this patch and received this error on line 1141: [DCC Error] RestClient.pas(1141): E2018 Record, object or class type required [DCC Fatal Error] D2010_RestApi.dpk(46): F2063 Could not compile used unit '....\src\RestClient.pas'

mauacruz commented 3 years ago

@jzapater
On TMultipartFormData.AddFieldContent procedure, replace the line: if Field.FieldType.Name.Equals(TMultiPartFormAttachment.ClassName) then

by if SameText(Field.FieldType.Name, TMultiPartFormAttachment.ClassName) then

It should compile and build the package.

Regards.