什么是Visual Basic.Net中的撇号(')?

时间:2018-02-02 14:36:46

标签: vb.net visual-studio

Private Sub Button4_Click(sender As Object, e As EventArgs) Handles Button4.Click
    firstnum = TextBox1.Text
    TextBox1.Text = "0"
    Operator_selector = True
    operations = 4 ' = /
End Sub

做一些操作后发现需要上面的语句才能运行出错

pic

1 个答案:

答案 0 :(得分:0)

这是一个行尾评论。在您的示例中,编译器会忽略= /