Welcome to Dream.In.Code
Become a VB.NET Expert!

Join 150,085 VB.NET Programmers for FREE! Get instant access to thousands of VB.NET experts, tutorials, code snippets, and more! There are 1,784 people online right now. Registration is fast and FREE... Join Now!




Visubal Basic problems

 
Reply to this topicStart new topic

Visubal Basic problems, Homework assignment

Jaeber
10 May, 2008 - 08:15 AM
Post #1

New D.I.C Head
*

Joined: 10 May, 2008
Posts: 1

I am useing Visual Basic.net to do a home work project, it is very simple but i cant figure out how to get the right code, all i need to do is convert miles to kilometers, does anyone know which code i use?
User is offlineProfile CardPM
+Quote Post

lewax00
RE: Visubal Basic Problems
10 May, 2008 - 08:46 AM
Post #2

New D.I.C Head
*

Joined: 13 Jan, 2008
Posts: 24


My Contributions
Create variables for the miles and kilometers, and use them in the conversion formula, like so:

CODE
Dim dblMiles as Double
Dim dblKilometers as Double

dblKilometers = dblMiles * 1.6


User is offlineProfile CardPM
+Quote Post

Fast ReplyReply to this topicStart new topic
Time is now: 1/8/09 11:45PM

Be Social

Dream.In.Code RSS Feed Dream.In.Code LinkedIn Group Follow Us On Twitter

Live VB.NET Help!

VB.NET Tutorials

Reference Sheets

VB.NET Snippets

DIC Chatroom

Bye Bye Ads

Monthly Drawing

Thumb Drive

Top Contributors

Top 10 Kudos This Month