Oracle FAQ Your Portal to the Oracle Knowledge Grid
HOME | ASK QUESTION | ADD INFO | SEARCH | E-MAIL US
 

Home -> Community -> Usenet -> c.d.o.misc -> Re: Integerfields in Delphi with Oracle?

Re: Integerfields in Delphi with Oracle?

From: Thomas Sommerfeld <Thomas.Sommerfeld_at_Baden-Online.de>
Date: 1998/02/21
Message-ID: <34EF5564.FCBEAC0D@Baden-Online.de>#1/1

Hello Wolfram,

I guess you want Delphi to represent your datafield with a TIntegerField.
You could do so, by defining the column in Oracle as NUMBER(x, 0), there x is a number between 1 and 10. Numbers above 10 are always interpreted as TFloatFields by Delphi (the largest integer in Delphi is 2^31 that's a number with 10 digits).
Nethertheless you can store integers in a TFloatField by assigning the value in a way like this:
Qry.FieldByName('IntegerField').AsInteger := 12345;

Hope this will be a satisfying answer to your question.

Bye
Thomas

Wolfram Diestel schrieb:

> We have a database application written in Delphi 3.0
> which has to run with varios databases.
>
> There's no generic Integer datatype in Oracle,
> but in the BDE-Alias there is an option "ENABLE INTEGERS".
> By the BDE-documentation this option should convert
> numeric datatypes to integer - but it seems not to work.
>
> How to get it work? Are there any ideas?
>
> Thanks al lot for any hint,
>
> Wolfram.
>
> ____________________________________________________
> Wolfram Diestel <diestel_at_rzaix340.rz.uni-leipzig.de>
Received on Sat Feb 21 1998 - 00:00:00 CST

Original text of this message

HOME | ASK QUESTION | ADD INFO | SEARCH | E-MAIL US