StatementTypes

Discussion of open issues, suggestions and bugs regarding SDAC (SQL Server Data Access Components) for Delphi, C++Builder, Lazarus (and FPC)
Post Reply
Malc123
Posts: 9
Joined: Mon 04 Jul 2011 13:35

StatementTypes

Post by Malc123 » Mon 10 Mar 2014 14:54

I have just upgraded to SDAC 6.9.18

when I open my application the routine beforeupdate below no longer works
I get undeclared Identifier 'stDelete'


procedure TFBookPallets.MSPalletDetailBeforeUpdateExecute(
Sender: TCustomMSDataSet; StatementTypes: TStatementTypes;
Params: TMSParams);
begin
try
if stDelete in StatementTypes then begin
Params.ParamByName('Result').ParamType := ptOutput;
Params.ParamByName('Result').DataType := ftInteger; // Field 'Result' does not present in Sender, so we need to set DataType manually
end;

Regards

Malcolm Laws

AlexP
Devart Team
Posts: 5530
Joined: Tue 10 Aug 2010 11:35

Re: StatementTypes

Post by AlexP » Tue 11 Mar 2014 10:37

Hello,

To solve the problem, you should add the DASQLGenerator module to the Uses section.
We will change this behavior in the next SDAC build, so there will be no need to add the DASQLGenerator unit to the USES clause.

Post Reply