Re: size of ftInteger
- From: Brian Bushay TeamB <BBushay@xxxxxxxxx>
- Date: Mon, 27 Jun 2005 20:24:20 -0500
>When setting up parameters for a TAdoStoredProc:
>
>CreateParameter('iCustID', ftInteger, pdInput, 10, iCurrCustID);
>
>Generally you refer to numbers by their precision and scale where precision
>is the total number of digits and scale is the number of decimal places.
>
>But the What is the size? Is 10 correct?
>
For an Integer it is 4 since it takes up 4 bytes.
I believe this parameter is ignored where delphi know the size from the type.
>According to the help on "CreateParameter":
>
>"Size indicates the maximum size of the parameter's value."
>
>I can't find anything that lets you set the scale or precision.
>
>ALso, what if the is ftBCD? What is the size then if your actuall value is
>something like 345.343?
Parameters are not like a field where you have to specify scale and precision.
It more like a variable you have to specify the max size of.
It will get the scale and precision of the value you asign it.
--
Brian Bushay (TeamB)
Bbushay@xxxxxxxxx
.
- Follow-Ups:
- Re: size of ftInteger
- From: Keith G Hicks
- Re: size of ftInteger
- References:
- size of ftInteger
- From: Keith G Hicks
- size of ftInteger
- Prev by Date: Re: size of ftInteger
- Next by Date: Re: size of ftInteger
- Previous by thread: Re: size of ftInteger
- Next by thread: Re: size of ftInteger
- Index(es):
Relevant Pages
|