var a, b, c;
// definição singular de dados
a = '';
b = '';
c = '';
// definição múltipla de dados
a = b = c = '';
I understand that I can not directly compare Javascript with VB.NET because JS is not a strongly typed language, but such a definition also works in VB. My problem is that when I have a component that has an attribute of it of type string, and I make such a statement, it gives me a boolean value, like this:
Public Class Foo
Public text As String
End Class
Dim a, b, c As New Foo
' definição singular de dados
a.text = ""
b.text = ""
c.text = ""
' definição múltipla de dados
a.text = b.text = c.text = ""
In my opinion (logically speaking) the language should define c.text
as an empty string, then b.text
as the value of c.text
and at the end do the same with a.text
how can I make a multiple set like in the example above, having the same value for all three variables?