我不能使用下划线 (_) 来打破 vb.net 中的 if 语句
I can't use the underscore (_) to break the if statement in vb.net
If T_ANAME.Text = "" Or R_MALE.Checked = False Or R_FEMALE.Checked = False Or R_OTHERS.Checked = False _
Or (C_COUNTRY.Text = "-- Select Country --") _ Then
End If
此代码显示语法错误。
我也提到了这个页面
If Statement With Multiple Lines
删除逻辑语句末尾多余的_。
If T_ANAME.Text = "" Or R_MALE.Checked = False Or R_FEMALE.Checked = False Or R_OTHERS.Checked = False _
Or (C_COUNTRY.Text = "-- Select Country --") Then
' do something
End If
If T_ANAME.Text = "" Or R_MALE.Checked = False Or R_FEMALE.Checked = False Or R_OTHERS.Checked = False _
Or (C_COUNTRY.Text = "-- Select Country --") _ Then
End If
此代码显示语法错误。
我也提到了这个页面 If Statement With Multiple Lines
删除逻辑语句末尾多余的_。
If T_ANAME.Text = "" Or R_MALE.Checked = False Or R_FEMALE.Checked = False Or R_OTHERS.Checked = False _
Or (C_COUNTRY.Text = "-- Select Country --") Then
' do something
End If