chris wrote:
Rich,
the 0 in {0:C2} is the placeholder for the variable you are formatting.
You could say:
double myMoney = 1;
double yourMoney = 2;
string foo = string.Format("My money is {0:C3}, and your money is
{1:C3}.", myMoney, yourMoney);
foo would be "My money is $1.000, and your money is $2.000.
Thanks, chris. Out of curiosity, is that a known function from C or
something introduced with .Net? It looks familiar, but I don't recall
every encountering it in VB.
Rich