I’ve been looking through the online documentation and demos and I have a couple of questions (having a serious brain freeze moment). I’d like to enable a several methods;
One that takes a TDataSet as a param and
another that will return several TDataSet objects
Do I need to create a Struct to hold the object? If so can you give me an example.
Do I declare the params as Binary or Variant?
For the returning method I think that an array of type X would be the correct way.
Are there any demos of parameters based of TObject/TComponent etc. Also as I travel a lot and sometime the Internet is not avail / way to expensive, do you have an offline version of the wiki?
Please have a look at RemObjects DataAbstract (Server Edition) - this will give you all the functionality you need to share, send and receive table data in both directions. Trying to accomplish this with the RemObjects SDK alone is possible, but much more work.
If you still want to go the hard way, you might want to serialize the data, not the object. You cannot have objects as parameters, so to pass the data of a dataset, you would have to create structs (TROComplexType) containing the data and the table structure.
I don’t think you will find a better example than the “ArraysServer” sample in the RemObjects Samples folder.