Re: Conversion component Meter/Feet-Inch
- From: "Pete Fraser" <pete.nospam.fraser.nospam@xxxxxxxxxxxxxxxxxxxxx>
- Date: Wed, 28 Nov 2007 12:14:59 -0000
It's a shame that the US don't know how to spell the metric
units defined in Europe.
Metres is the unit not Meters (which is an instrument with a
dial)
Oh well :(
Pete
"Ivo Bauer" <abuer@xxxxxx> wrote in message
news:474d59d3$1@xxxxxxxxxxxxxxxxxxxxxxxxx
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: Shane Stump
- Re: Conversion component Meter/Feet-Inch
- From: David J Taylor
- Re: Conversion component Meter/Feet-Inch
- From: Ivo Bauer
- Re: Conversion component Meter/Feet-Inch
- From: Eugene Mayevski
- Re: Conversion component Meter/Feet-Inch
- References:
- Conversion component Meter/Feet-Inch
- From: Nils Boedeker
- Re: Conversion component Meter/Feet-Inch
- From: Ivo Bauer
- Conversion component Meter/Feet-Inch
- Prev by Date: Re: Conversion component Meter/Feet-Inch
- 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
|
|