Re: Conversion component Meter/Feet-Inch
- From: Ivo Bauer <abuer@xxxxxx>
- Date: Wed, 28 Nov 2007 13:06:40 +0100
Hi Nils,
exist an component that conversion meter to feed/inch and backwards
???
There is a powerful, but easy to use, conversion system already built into your Delphi. Look at this example (untested!):
========
uses
ConvUtils, StdConvs;
function MetersToInches(const AValue: Extended): Extended;
begin
Result := Convert(AValue, duMeters, duInches);
end;
function MetersToFeets(const AValue: Extended): Extended;
begin
Result := Convert(AValue, duMeters, duFeet);
end;
function InchesToMeters(const AValue: Extended): Extended;
begin
Result := Convert(AValue, duInches, duMeters);
end;
function FeetsToMeters(const AValue: Extended): Extended;
begin
Result := Convert(AValue, duFeet, duMeters);
end;
========
--
Ivo Bauer
.
- Follow-Ups:
- Re: Conversion component Meter/Feet-Inch
- From: Pete Fraser
- Re: Conversion component Meter/Feet-Inch
- References:
- Conversion component Meter/Feet-Inch
- From: Nils Boedeker
- Conversion component Meter/Feet-Inch
- Prev by Date: ANN: BTActiveMQClient - Apache ActiveMQ messaging system client
- Next by Date: Re: Conversion component Meter/Feet-Inch
- Previous by thread: Re: Conversion component Meter/Feet-Inch
- Next by thread: Re: Conversion component Meter/Feet-Inch
- Index(es):
Relevant Pages
|
|