主题:vb语法
Dim toppings As String = ""
If CheckBox1.Checked = True Then
toppings &= "Cheese "
End If
If CheckBox2.Checked = True Then
toppings &= "Peppers "
End If
If CheckBox3.Checked = True Then
toppings &= "Mushrooms"
End If
If toppings <> "" Then
MsgBox("Your pizza has the following toppings: " & toppings)
End If
请问&=是什么意思?能这样写toppings &= "Cheese "吗?
If CheckBox1.Checked = True Then
toppings &= "Cheese "
End If
If CheckBox2.Checked = True Then
toppings &= "Peppers "
End If
If CheckBox3.Checked = True Then
toppings &= "Mushrooms"
End If
If toppings <> "" Then
MsgBox("Your pizza has the following toppings: " & toppings)
End If
请问&=是什么意思?能这样写toppings &= "Cheese "吗?