I am trying to get a GUI label (L1) to show multiple string variables (V1,V2...). I can get it show any one of these using
L1.Text=V1; or L1.Text=V2; etc
What I want, tho, is to show multiple variables together. Eg, something like
L1.Text=V1+V2+V3;
But it doesn't like the + (or the &) operator. Is there an operator for simple concatenation like this?
UPDATE
I managed to get it using string.format as follows:
L1.Text=String.Format("%s%s%s%s", V0, V1, V2, V3);
Is this the right/best (a stupid) way of doing it?
L1.Text=V1; or L1.Text=V2; etc
What I want, tho, is to show multiple variables together. Eg, something like
L1.Text=V1+V2+V3;
But it doesn't like the + (or the &) operator. Is there an operator for simple concatenation like this?
UPDATE
I managed to get it using string.format as follows:
L1.Text=String.Format("%s%s%s%s", V0, V1, V2, V3);
Is this the right/best (a stupid) way of doing it?