Hi everyone.
I have a problem setting variable names in DOA TOracleDataset (its a part of at Select statement) :
DQry.SQL.Add('Where INITIALER=:UID))');
DQry.DeclareVariable('UID',OtString);
DQry.SetVariable('UID','XXXX');
Here i set a variable called UID which causes the error message mentioned in the subject.
If i change it to
DQry.SQL.Add('Where INITIALER=:INITIALER))');
DQry.DeclareVariable('INITIALER',OtString);
DQry.SetVariable('INITIALER','XXXX');
then it works perfectly, meaning that my variable names MUST be the same as the fieldname.
Why is this different from TQuery and can i do anything to prevent the error ?
I am transferring a huge application from TQueries to DOA, and i would prefer not to change my SQL's
Rgds
Jan
I have a problem setting variable names in DOA TOracleDataset (its a part of at Select statement) :
DQry.SQL.Add('Where INITIALER=:UID))');
DQry.DeclareVariable('UID',OtString);
DQry.SetVariable('UID','XXXX');
Here i set a variable called UID which causes the error message mentioned in the subject.
If i change it to
DQry.SQL.Add('Where INITIALER=:INITIALER))');
DQry.DeclareVariable('INITIALER',OtString);
DQry.SetVariable('INITIALER','XXXX');
then it works perfectly, meaning that my variable names MUST be the same as the fieldname.
Why is this different from TQuery and can i do anything to prevent the error ?
I am transferring a huge application from TQueries to DOA, and i would prefer not to change my SQL's
Rgds
Jan