casualrich
Member
- Joined
- Dec 17, 2008
- Messages
- 12
- Programming Experience
- 1-3
hi how can i do error trapping within this peice of code?
please help me
please help me
VB.NET:
Private Sub butCALCULATE_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles butCALCULATE.Click
Dim input1 As Single
Dim network As Single
network = 35
input1 = txtamount1.Text
txtcost1.Text = input1 * network
Dim input2 As Single
Dim HardDisk As Single
HardDisk = 120
input2 = txtamount2.Text
txtcost2.Text = input2 * HardDisk
Dim input3 As Single
Dim MotherBoard As Single
MotherBoard = 39.99
input3 = txtamount3.Text
txtcost3.Text = input3 * MotherBoard
Dim input4 As Single
Dim Matnteance As Single
Matnteance = 79.99
input4 = txtamount4.Text
txtcost4.Text = input4 * Matnteance
Dim input5 As Single
Dim OnsiteService As Single
OnsiteService = 50
input5 = txtamount5.Text
txtcost5.Text = input5 * OnsiteService