delphi-rest-client-api icon indicating copy to clipboard operation
delphi-rest-client-api copied to clipboard

Delphi 2010 Package Installation Problem

Open mad85 opened this issue 8 years ago • 3 comments

image

mad85 avatar Sep 24 '17 20:09 mad85

patch.zip This can help you.

Dzenik avatar Feb 06 '18 13:02 Dzenik

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'

jzapater avatar Mar 27 '18 09:03 jzapater

@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.

mauacruz avatar May 18 '21 14:05 mauacruz