Subject | Re: Accessing "Numeric (18,0)" fields via FieldByName |
---|---|
Author | Pelle F. S. Liljendal |
Post date | 2003-11-02T18:27:07Z |
Well I looked into the IBO source and I can see the AsInt64 mehtod
of the IB_xxx components simply use a StrToInt64, hence this seems
to be the way to do it:
Int64Var := StrToInt64(qDataSet.FieldByName('SomeField').AsString);
or:
qDataSet.FieldByName('SomeField').AsString := IntToStr(Int64Var);
--- In IBObjects@yahoogroups.com, "Pelle F. S. Liljendal"
<pelle@l...> wrote:
of the IB_xxx components simply use a StrToInt64, hence this seems
to be the way to do it:
Int64Var := StrToInt64(qDataSet.FieldByName('SomeField').AsString);
or:
qDataSet.FieldByName('SomeField').AsString := IntToStr(Int64Var);
--- In IBObjects@yahoogroups.com, "Pelle F. S. Liljendal"
<pelle@l...> wrote:
> My problem is that the IBOxxx components don't have an "AsInt64"
> method like the IB_xxx components do.