1 -9
If (blnInputStatus AndAlso txtInput.Text <> "0") Or blnDecimalPoint Then
txtInput.Text += Button2.Text
Else
txtInput.Text = Button2.Text
blnInputStatus = True
End If
End If
End If
End If
End If
End If
If (blnInputStatus AndAlso txtInput.Text <> "0") Or blnDecimalPoint Then
txtInput.Text += Button8.Text
Else
txtInput.Text = Button8.Text
blnInputStatus = True
End If
End If
End If
For no 0
If blnInputStatus Then
'To prevent multuple zeroes from appearing if 0 is the first digit.
If txtInput.Text.Length >= 1 AndAlso txtInput.Text <> "0" Then
txtInput.Text += Button1.Text
'This is to allow 0 to be added after after the decimal point.
ElseIf blnDecimalPoint Then
txtInput.Text += Button1.Text
End If
End If
End If
Else
CalculateTotals()
End If
strCalculate = "Exponential"
blnDecimalPoint = False
End If
For square root button
If txtInput.Text < "0" Then
MsgBox("The root of a negative number is undefined!", 0, "WARNING!")
Exit Sub
End If
End If
End If
End If
txtInput.Text = txtInput.Text.Remove(intNumbers - 1)
End If
End Sub