Subject | Re: [IBO] Params in BCB |
---|---|
Author | Eric Handbury <ehandbury@hotmail.com> |
Post date | 2003-02-19T23:13:51Z |
>a bit
> I tend to use is ParamByName() almost for everything I do as it is
> more readable and thus maintainable - even if it is supposed to beslower.
Norman, thanks for the answers.
I also use ParamByName as well. But in this case I get data
through a XML file, so I have to build the SQL string dynamically,
so I use 'insert into xx values (?,?,?,?...)' and then build the
params as I parse the XML data.
> However, I did a bit of investigating and wandering through thehelp file
> and found out that it translates to the following if you want touse the
> Params property :I now use the Columns[xx] field and its good to get confirmation
>
> IB_Query1->Params->Columns[0]->AsInteger = StrToInt(Edit1-
>Text);
that this is the right thing to do.
Eric.