Subject | RE: [IBO] problems with SQL query |
---|---|
Author | Jason Wharton |
Post date | 2004-07-30T22:38:27Z |
Use the FieldByName() method.
Or, use the ParamByName() method.
Other methods have you tied into variants instead of the native types and
this can lead to unusual errors.
Jason Wharton
-----Original Message-----
From: Mihai Chezan [mailto:gsmcq@...]
Sent: Friday, July 30, 2004 9:27 AM
To: IBObjects@yahoogroups.com
Subject: Re: [IBO] problems with SQL query
IB_Query1.Fields['xx'].AsString := '';
IBOQuery1.Fields['xx'].AsString := '';
[Error] Unit1.pas(29): Incompatible types: 'Word' and 'String'
[Error] Unit1.pas(30): Incompatible types: 'Integer' and 'String'
like I said it must be something wrong with my ibo instalation or
version (4.3.Aa).
Or, use the ParamByName() method.
Other methods have you tied into variants instead of the native types and
this can lead to unusual errors.
Jason Wharton
-----Original Message-----
From: Mihai Chezan [mailto:gsmcq@...]
Sent: Friday, July 30, 2004 9:27 AM
To: IBObjects@yahoogroups.com
Subject: Re: [IBO] problems with SQL query
> Oops, sorry, Fields['xxx'] is implemented for the Fields[] array.same error here:
> For parameters the property is ParamValues, not Params:
IB_Query1.Fields['xx'].AsString := '';
IBOQuery1.Fields['xx'].AsString := '';
[Error] Unit1.pas(29): Incompatible types: 'Word' and 'String'
[Error] Unit1.pas(30): Incompatible types: 'Integer' and 'String'
like I said it must be something wrong with my ibo instalation or
version (4.3.Aa).