RealThinClient SDK 学习笔记(1)

从客户端调用远程函数的两种方法

1:

RtcClientModule1.Prepare('select'); // call the "select" function on the Server
RtcClientModule1.Param.asText['table']:='biolife'; // with "biolife" as "table" parameter
RtcClientModule1.Call(RtcResult1); // make the call non-blocking, result will be received in "RtcResult1" component events;同步调用

2:

with RtcClientModule do
begin
    // (1)
    with Data.newFunction('Hello') do  //函数名
    begin
       // (2)
       asString['name'] := edUserName.Text;//参数
    end;
   // (3)
   Call(RtcResult);//同步调用

end;

原文地址:https://www.cnblogs.com/wxb-km/p/6013498.html