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

.GetAsDataSet() no Delphi XE3 #16

Closed fcmatos closed 9 years ago

fcmatos commented 11 years ago

Olá,

Gostei muito da API. Parabéns. Gostaria de saber se tem alguma configuração a ser feita para utilizar no GetAsDataSet() no Delphi XE3.

Mensagem de erro: [DCC Error] Unit1.pas(53): E2003 Undeclared identifier: 'GetAsDataSet'

vegar commented 10 years ago

I guess this is because GetAsDataSet is defined inside a conditional compile:

RestClient.pas

    {$IFDEF USE_SUPER_OBJECT}
    procedure GetAsDataSet(ADataSet: TDataSet);overload;
    function GetAsDataSet(): TDataSet;overload;
    {$ENDIF}

Even though the documentation states that super object is used by default, it's not used for Delphi XE and up. I have registered this as a new issue #19.

clederambrosini commented 8 years ago

Ola. Estou começando com rest no delphi xe2 e estudando essa api, porem estou com esse problema [DCC Error] uFrm_PersonList.pas(61): E2003 Undeclared identifier: 'GetAsDataSet' o que posso fazer para resolver?