BrianGooch
Programmer
Delphi 2009, Win32, Firebird 1.5
TADO parameters do not perform as stated in the on-line Help.
All 3 examples are based on the same query with SQL on the fly, and Prepared
1. Parameters.AddParameter followed by Refresh clears the Parameters - thus, none in the Collection
2. Parameters.CreateParameter( 'Parm1', ftString, pdInput, 10, {null or nil}) fails.
Parameters.CreateParameter( 'Parm1', ftString, pdInput, 10, 0) works;
To update the value call
Parameters.Refresh
Parameters.ParamByName('Parm1').Value:= 'Ok'
3. Copy parameters to another dataset:
for i:= 0 to Qry2.RecordCount -1 do
Qry1.Parameters.Assign(Qry2.Parameters;
produces
EListError 'List Index out of bounds(0)'
The error occurs whether Parameters.Clear is called or not.
Anybody any ideas? There is no problem with the connection to the Firebird db.
Thankyou in advance.
TADO parameters do not perform as stated in the on-line Help.
All 3 examples are based on the same query with SQL on the fly, and Prepared
1. Parameters.AddParameter followed by Refresh clears the Parameters - thus, none in the Collection
2. Parameters.CreateParameter( 'Parm1', ftString, pdInput, 10, {null or nil}) fails.
Parameters.CreateParameter( 'Parm1', ftString, pdInput, 10, 0) works;
To update the value call
Parameters.Refresh
Parameters.ParamByName('Parm1').Value:= 'Ok'
3. Copy parameters to another dataset:
for i:= 0 to Qry2.RecordCount -1 do
Qry1.Parameters.Assign(Qry2.Parameters;
produces
EListError 'List Index out of bounds(0)'
The error occurs whether Parameters.Clear is called or not.
Anybody any ideas? There is no problem with the connection to the Firebird db.
Thankyou in advance.