2006/8/22, Zlatko Matic <[EMAIL PROTECTED]>:
What is wrong with passing parameters through ParamByName, such as:
SQLQuery1.Params.ParamByName('parameter').AsString:='blah, blah' ?
There is nothing wrong: I never used it nor knew it ever existed (this
is the reason of my initial answer). But there is nothing wrong using
that other method. The example you provided could be as dangerous with
the Param method, since in essence it does the same (as far as I can
extrapolate).
Instead of using parameters I was having my SQL queries and const with
%s commands then simply replacing with the parameters with actual
desired values, then using the result directly in a TQuery. This is
just another way to work.
Regards.
--
Alexandre Leclerc
_________________________________________________________________
To unsubscribe: mail [EMAIL PROTECTED] with
"unsubscribe" as the Subject
archives at http://www.lazarus.freepascal.org/mailarchives