fabriciocolombo/delphi-rest-client-api

Delphi 2010 Package Installation Problem

Opened this issue · 3 comments

mad85 commented

image

patch.zip
This can help you.

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