Add params programatically
Posted: Sat 14 May 2005 23:51
Hi,
I am looking to do the following below with corelab products...
Below is how I do it with TADO.
Query1.Parameters.CreateParameter('clientid', ftstring, pdInput,5,0);
Query1.Parameters.AddParameter;
with sql do
begin
Clear;
add('SELECT strClientId');
add('FROM [2001 Companies]');
add('Where clientid= :strClientId');
end;
Query.Parameters.ParamByName('clientid').Value := EDClientId.Text;
I am looking to do the following below with corelab products...
Below is how I do it with TADO.
Query1.Parameters.CreateParameter('clientid', ftstring, pdInput,5,0);
Query1.Parameters.AddParameter;
with sql do
begin
Clear;
add('SELECT strClientId');
add('FROM [2001 Companies]');
add('Where clientid= :strClientId');
end;
Query.Parameters.ParamByName('clientid').Value := EDClientId.Text;