RTC Forums
May 02, 2024, 09:11:58 AM *
Welcome, Guest. Please login or register.

Login with username, password and session length
 
   Home   Help Login Register  
Pages: [1]
  Print  
Author Topic: Return additional information along with a RTCDataSet.  (Read 3034 times)
wbroyles
RTC Expired
*
Posts: 21


« on: May 21, 2014, 01:19:20 PM »

Is is possible to return additional information from the server along with the Dataset in a RTCFunction call?
Such as the "Table Name"?

Thanks

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


« Reply #1 on: May 22, 2014, 12:30:12 AM »

Yes. You can send any data structure you want as a Result from a remote function call.

For example, by placing it inside a rtc record:
Code:
with Result.newRecord do
  begin
  asDataSet['data']:=myDataSet;
  asString['name']:='myTable';
  end;

Please check this FAQ topic for more examples.

Best Regards,
Danijel Tkalcec
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.