Quantcast
Viewing all articles
Browse latest Browse all 27034

VS 2010 Curly braces and string.Format

hi
That is code
lblResultaat.Text = String.Format("Het bedrag {0} heeft als coupures {1} {2}{3} resterende bedrag in munten{4} ", Gebruiktbedrag, Environment.NewLine, Resultaat, Environment.NewLine, Rest)

Why must I have two time environment.newline.

lblResultaat.Text = String.Format("Het bedrag {0} heeft als coupures {1} {2}{3} resterende bedrag in munten{2} ", Gebruiktbedrag, Environment.NewLine, Resultaat,rest)

When I try this I've got the message the argumenten are not in the wright order.

Who can I make the I not have to set the newline twice Ore is that not possible

Viewing all articles
Browse latest Browse all 27034

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>