ApplyUpdates function in C++ Builder 5

garrad

Member
Is it possible to use cached updates in C++ Builder 5? I have enabled the property CachedUpdates in the query object.

I then try to apply an update. My code is:
DataMod->MainSession->ApplyUpdates(OPENARRAY(TDataSet *, (qryName)), true);

but I receive a C++ error "Cannot convert 'OpenArray[TD]' to 'const TDataSet **'", as well as "Type mismatch in parameter 'DataSets' (wanted 'const TDataSet **', got 'OpenArray[TD]')"

I have noticed that you have a workaround for a problem in C++ Builder which I haven't tried at http://www.allroundautomations.nl/ubb/Forum1/HTML/000445.html as well as a suggested modificaton at http://www.allroundautomations.com/ubb/Forum1/HTML/000615.html

Do either of these apply to my code, or has there been an update to DOA since these messages were posted to make the messages no longer relevant?

Any suggestions you have for this error would be appreciated.
 
The workarounds no longer apply. The corrext C++Builder syntax is:

Session->ApplyUpdates(OPENARRAY(const TDataSet *, (EmpDataSet, DeptDataSet)), true);

------------------
Marco Kalter
Allround Automations
 
Back
Top