我的代码没有在 AnswerText.Text 中显示文本是否有原因?
Dim EquationValues() As String
' Split the array into a string array based on blank spaces
EquationValues = DisplayTextBox.Text.Split(" "c)
' Declaring an integer as a counter for the loop
Dim LoopCounter As Integer = 0
' Setting a for loop on the array and performing the operations
For LoopCounter = 0 To EquationValues.Length - 1
If EquationValues(LoopCounter) = "/" Then
AnswerTextBox.Text = EquationValues(LoopCounter - 1) / EquationValues(LoopCounter + 1)
End If
If EquationValues(LoopCounter) = "*" Then
AnswerTextBox.Text = EquationValues(LoopCounter - 1) * EquationValues(LoopCounter + 1)
End If
Next