VB Express 2012 Desktop Tutorial 4 – MPG Calculator – Variables – User Input – Conversion

http://www.schoolfreeware.com

The MPG (Miles Per Gallon) Calculator will be created over several tutorials:

Tutorial 3 – Form Setup
Tutorial 4 – Variables And User Input
Tutorial 5 – Prevents Crashes With Try Catch
Tutorial 6 – Tabs

This tutorial goes over user input, variables, and conversion.

CDbl – Convert a string to a double
CInt – Convert a string to an integer
ToString – Convert a number to a string

source