.AsString Delphi 2009 direct mode
Posted: Fri 20 Mar 2009 17:05
When I use a single select with a string param
works with OCI properly but in direct mode it doesn't find the record
I found in direct mode
helps, but I've thousands places in sourcecode to change, so it's no good workaround for me and I can't switch easy from 2007 to 2009
Is there a more elegant way, or do you solve this in next version, where I've not to change my sourcecode ?
Code: Select all
Query.sql.add('select * form tab where field = :field');
Query.parms[0].AsString := 'abc';
I found in direct mode
Code: Select all
Query.parms[0].AsAnsiString := 'abc';Is there a more elegant way, or do you solve this in next version, where I've not to change my sourcecode ?