I am making a neopoints calculator in vb6 and here is the calculation code Code (Text): Private Sub Command1_Click() Dim ratio As Double Dim results As Double Dim Points As Double Select Case Combo1.Text Case "200m Peanut Dash" ratio = 0.75 Case Else ratio = 1 End Select Points = ratio * results Lblresults.Text = Points End Sub it gives me the error when I clikc the button Then it shows me the code and highlights Private Sub Command1_Click()
I fixed it it is supposed to be Code (Text): Lblresults.Caption = Points not Code (Text): Lblresults.text = Points