C
Carlo
I need to take the values stored in the variables o1 to o7 and
multiply them by 0.90 and print the result in a list box. What is the
problem with the coding below to perform this operation:
Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As
System.EventArgs) Handles Button1.Click
Dim o1, o2, o3, o4, o5, o6, o7, sale As Double
Dim n As Integer
o1 = 39
o2 = 21
o3 = 7.75
o4 = 33
o5 = 6.75
o6 = 24
o7 = 26
For n = 1 To 7
sale = CDbl(("o" & n) * 0.9)
lstOutput.Items.Add(CDbl(sale))
Next
Thanks
Carlo
multiply them by 0.90 and print the result in a list box. What is the
problem with the coding below to perform this operation:
Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As
System.EventArgs) Handles Button1.Click
Dim o1, o2, o3, o4, o5, o6, o7, sale As Double
Dim n As Integer
o1 = 39
o2 = 21
o3 = 7.75
o4 = 33
o5 = 6.75
o6 = 24
o7 = 26
For n = 1 To 7
sale = CDbl(("o" & n) * 0.9)
lstOutput.Items.Add(CDbl(sale))
Next
Thanks
Carlo