E2003 Undeclared identifier: 'TStatementTypes'
E2003 Undeclared identifier: 'TStatementTypes'
Hi,
I updated SDAC to new version 6.9.17 and re-complied my program in Delphi XE2. But it has an error "E2003 Undeclared identifier: 'TStatementTypes'" on "BeforeUpdateExecute" event. Is it a bug in new version.
Thanks!
I updated SDAC to new version 6.9.17 and re-complied my program in Delphi XE2. But it has an error "E2003 Undeclared identifier: 'TStatementTypes'" on "BeforeUpdateExecute" event. Is it a bug in new version.
Thanks!
Re: E2003 Undeclared identifier: 'TStatementTypes'
Hello,
To solve the problem, you should add the DASQLGenerator module to the Uses section.
To solve the problem, you should add the DASQLGenerator module to the Uses section.
Re: E2003 Undeclared identifier: 'TStatementTypes'
Thanks! Problem solved when follow your instruction. But I don't know why the new version can't add it automatically? It lets me so trouble that I need to add it many forms manually. 
-
AndreyZ
Re: E2003 Undeclared identifier: 'TStatementTypes'
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.
Re: E2003 Undeclared identifier: 'TStatementTypes'
How should I write the ifdef to make the unit compilable with all sdac versions?
{$IF SDACVersion >= '6.90'} or anything like that?
{$IF SDACVersion >= '6.90'} or anything like that?
Re: E2003 Undeclared identifier: 'TStatementTypes'
Hello,
Yes, you can use the {$IF} directive to define the product version, but for correct comparison you should use the full product version. I.e., instead of 6.90 for the current version, you should use '6.9.17' .
P.S. As it was said above, we will change this behavior in the nearest version, and you won't need to attach additional modules for using TStatementTypes
Yes, you can use the {$IF} directive to define the product version, but for correct comparison you should use the full product version. I.e., instead of 6.90 for the current version, you should use '6.9.17' .
P.S. As it was said above, we will change this behavior in the nearest version, and you won't need to attach additional modules for using TStatementTypes
Re: E2003 Undeclared identifier: 'TStatementTypes'
so this unit is needed only in 6.9.17 and higher versions?
Re: E2003 Undeclared identifier: 'TStatementTypes'
Hello,
This module should be added only in the current SDAC version 6.9.17, we will fix this problem in the next versions - and you won't need to add the module.
This module should be added only in the current SDAC version 6.9.17, we will fix this problem in the next versions - and you won't need to add the module.