I could do as follows, pass as parameter in the server function the type out
, because it returns you the value after the client makes the request. For example:
Servidor:
function grava(out psVariavel: String): Boolean;
In the client when you call this function you pass as a parameter, a variable or an FDMemTable, so it will return you what happens on the server.
I hope you have been clear. Hugs!