PureFlamez
Newcomer
- Joined
- Oct 13, 2003
- Messages
- 2
I've been trying to work this calculator all day! my formula is:
Private Sub cmdCalculate_Click()
If (Val(Range) * 1.5) > (Val(Attack) + Val(Strength)) Then
Combat = ((Val(Range.Text) * 1.5) / 4) + (Val(Hits.Text) / 4) + (Val(Defense.Text) / 4) + (Val(Magic.Text) / 8) + (Val(Prayer.Text) / 8)
Else
Combat = ((Val(Attack.Text) + Val(Strength.Text)) / 4) + (Val(Hits.Text) / 4) + (Val(Defense.Text) / 4) + (Val(Magic.Text) / 8) + (Val(Prayer.Text) / 8)
End If
Text4.Text = Combat
End Sub
it says runtime error 424. object required. WhY?
Private Sub cmdCalculate_Click()
If (Val(Range) * 1.5) > (Val(Attack) + Val(Strength)) Then
Combat = ((Val(Range.Text) * 1.5) / 4) + (Val(Hits.Text) / 4) + (Val(Defense.Text) / 4) + (Val(Magic.Text) / 8) + (Val(Prayer.Text) / 8)
Else
Combat = ((Val(Attack.Text) + Val(Strength.Text)) / 4) + (Val(Hits.Text) / 4) + (Val(Defense.Text) / 4) + (Val(Magic.Text) / 8) + (Val(Prayer.Text) / 8)
End If
Text4.Text = Combat
End Sub
it says runtime error 424. object required. WhY?