Number to String conversion with Str(Number) is obvious, when it was still functioning.
Now it has to be done by Number.ToText
or Number.ToString
.
Until now I have not found a one line solution for this: label.Text = Str(1 + 1)
.
I can’t use (1 + 1).ToText
.
So I use an extra line to temporarily store the result, like Var tmp As Integer = 1 + 1
.
And on a second line: label.Text = tmp.ToText
But I have a strong feeling I am overlooking something.
Anybody who can write this in one line of code?