Login ProductsSalesSupportDownloadsAbout |
Home » Technical Support » DBISAM Technical Support » Support Forums » DBISAM SQL » View Thread |
Messages 11 to 11 of 11 total |
ParamByName |
Wed, Jan 18 2017 2:19 PM | Permanent Link |
Tim Young [Elevate Software] Elevate Software, Inc. timyoung@elevatesoft.com | Walter and Ronald,
<< I was wrong - test - Forget that idea... if only worked with AsInteger ... >> The key here is that parameters *do not* work like fields in this respect. Using As<DataType> with parameters will result in the parameter type being set to that particular type. You *can*, however, use the Value property to do what you want. MyQuery.Params.ParamByName('tag').DataType := ftInteger; MyQuery.Params.ParamByName('tag').Value := '100'; and it should work just fine, using the built-in variant conversions in Delphi to determine the rules of whether a type can be converted to another before being sent on to the DBISAM engine for actual usage. Tim Young Elevate Software www.elevatesoft.com |
« Previous Page | Page 2 of 2 | |
Jump to Page: 1 2 |
This web page was last updated on Wednesday, April 24, 2024 at 11:07 AM | Privacy PolicySite Map © 2024 Elevate Software, Inc. All Rights Reserved Questions or comments ? E-mail us at info@elevatesoft.com |