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

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;

相关文章:

  • 2022-03-08
  • 2021-05-03
  • 2022-01-25
  • 2021-11-22
  • 2022-02-21
猜你喜欢
  • 2021-06-03
  • 2021-08-09
  • 2022-12-23
  • 2021-08-02
  • 2022-12-23
  • 2021-06-04
  • 2021-10-27
相关资源
相似解决方案