一看你就是个新手,举个栗子吧:如下,正负数判断Private Sub Command1_Click()If Val(Text1.Text) > 0 ThenText2.Text = "该数为正数"End IfIf Val(Text1.Text) < 0 ThenText2.Text = "该数为负数"End IfIf Val(Text1.Text) = 0 ThenText2.Text = "该数既不是正数也不是负数"End IfEnd Sub