Subject | Re: Fields[xx].value - unidentifyed type: 14 |
---|---|
Author | Mauricio Longo |
Post date | 2001-01-03T18:03:32Z |
Hi,
var
data: variant;
begin
if not qryGetRoot.Prepared then
qryGetRoot.Prepare;
qryGetRoot.open;
Data := qryGetRoot.FieldByName('id').value;
...
The debugger reports the value of "data" as being "Data: Unknown
type: 14".
So, it is not a problem of how TkbMemTable gets the info from the
Dataset, but rather a problem of how IBO handles the type of the
variant value property. It *cannot* be assigned to a variant
variable.
Any clues to as how I work around this?
All my best,
Mauricio Longo
> Same problem. It seems that however IBO places the data in theof
> Variant Value property it does not transfer correctly to another
> variant property.
>
> I'll try to do more testing on this in particular, without the use
> TkbMemTable to see if I can get more info on this behavior.I just experimented with some code that looked like this:
>
var
data: variant;
begin
if not qryGetRoot.Prepared then
qryGetRoot.Prepare;
qryGetRoot.open;
Data := qryGetRoot.FieldByName('id').value;
...
The debugger reports the value of "data" as being "Data: Unknown
type: 14".
So, it is not a problem of how TkbMemTable gets the info from the
Dataset, but rather a problem of how IBO handles the type of the
variant value property. It *cannot* be assigned to a variant
variable.
Any clues to as how I work around this?
All my best,
Mauricio Longo