I know this isn't a hard question but I'm a new at VB. This is my code:
Private Sub Command1_Click()
Dim answer As Integer
Dim milesover As Integer
Dim basefine As Integer
Dim mphfine As Integer
Text1.Text = milesover
basefine = 125
mphfine = 8
answer = basefine + (milesover * mphfine)
MsgBox "The violator owes: answer", vbCritical + vbOKOnly + vbInformation, "Promp"
I'm trying to call in 'answer' so it says the violator owes: (X amount of money). I've tryed moving the quotation marks to before it but that didn't seem to work. I'm a newb at VB but I know some stuff about c++. Thanks for any help.