Private Sub Text1_GotFocus(Index As Integer)
Text1(Index).ForeColor = vbWhite
Text1(Index).BackColor = vbBlue
Text1(8).Text = Val(Text1(6).Text) - Val(Text1(7).Text)
Text1(10).Text = Val(Text1(5).Text) + Val(Text1(4).Text) - Val(Text1(6).Text)
If Text1(8).Text < 0 Then
Text1(9).Text = Val(Text1(8).Text) / Val(Text1(6).Text)
Else
'MsgBox "良品数为0,不能计算!"
End If
End Sub
以上代码中:Text1(9).Text = Val(Text1(8).Text) / Val(Text1(6).Text)为什么Text1(9)不能自动算出结果?
谢谢,在线等……