Basic Measurement Conversion Programs

10-09-2005, 08:13 PM
I'm fairly new with VB, and using it in my CP Programming classes, and I've run into some trouble that my book doesn't have the answer for: Conversions! It says nothing about it, and I have to do a mini-project on it, but I lost all background knowledge on how to do these.

I have to make a basic conversion into a label for feet-to-inches, centimeters-to-inches, and miles-to-meters. Any help on how to do this would be great! :)

10-09-2005, 08:22 PM
Just multiply variables by their conversion factor:

'Inches to centimeters
Label1.Text = CDbl(Text1.Text) * 2.54
'etc. etc.

10-09-2005, 08:34 PM
Thank you very much! :)

Wow man, you are a LIFESAVER! I know that was a simple thing, but WOW. Thanks for the fast reply, AND the help. I pass now! :cool:

EZ Archive Ads Plugin for vBulletin Copyright 2006 Computer Help Forum