How to declare two object in one statement for vb.net?
example
If IsNumeric(TextBox1.Text),(TextBox2.Text) Then
lbl_answer.Text = Val(TextBox1.Text) + Val(TextBox2.Text)
Else
MsgBox(“Error only number can be calculate”)
End If
I can do
if isnumeric(textbox1.text) then
but I can’t say
if isnumeric(textbox1.text), (textbox2.text)
How can I do so?
As nobody did so far let me express your options (straight from the comments – sorry but why those are not answers I don’t know):
AndAndAlso(subtle difference:AndAlsodon’t evaluate the second expression if the first evaluates to false)I don’t think the LINQ one is really a option.