XData Service return TStrings

I saw the "documentation" but I was unable to return TStrings on a Service coded in my new Xdata server.


On you page 140 you describe it.

Because it's not working the service then put an small sample of how to return Strings on a Service operation function.

The error shows up when I tried to assign the "Result" of that funcion with a prior TStrings variable.

Can you please provide the code and detailed information to reproduce the problem? It works fine with a sample code like this:




function TMyService.EchoString(Value: string): TStrings;
begin
  Result := TStringList.Create;
  Result.Add(Value);
  Result.Add(Value + '1');
  Result.Add(Value + '2');
  Result.Add(Value + '3');
end;