RTC Forums
November 01, 2024, 07:23:51 AM *
Welcome, Guest. Please login or register.

Login with username, password and session length
 
   Home   Help Login Register  
Pages: [1]
  Print  
Author Topic: Results with parameters  (Read 4341 times)
wbroyles
RTC Expired
*
Posts: 21


« on: August 13, 2013, 04:51:15 PM »

Is it possible to return the original parameters (or access them) along with a dataset in the RtcResult1Return(Sender: TRtcConnection;
    Data, Result: TRtcValue) method of the TRtcResult ?

Thanks

Wade
Logged
D.Tkalcec (RTC)
Administrator
*****
Posts: 1881


« Reply #1 on: August 13, 2013, 07:12:37 PM »

Yes. You have access to the complete "Data" object in the OnResult event. "Data" parameter in the OnResult event is the equivalent of the "Data" object you are using to prepare the remote function call with the TRtcClientModule component. If you have made a single remote function call, the "Data" object will contain a single "asFunction" object, with "FunctionName" and all the parameters you have passed to the call.

Best Regards,
Danijel Tkalcec
Logged
wbroyles
RTC Expired
*
Posts: 21


« Reply #2 on: August 13, 2013, 08:07:31 PM »

Perfect!

Thank you,

Wade
Logged
Pages: [1]
  Print  
 
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.21 | SMF © 2015, Simple Machines Valid XHTML 1.0! Valid CSS!
Page created in 0.022 seconds with 16 queries.