Format string question

  • Thread starter Thread starter kevininstructor
  • Start date Start date
K

kevininstructor

The following was copied from a web site for learning formatting.
Dim myInt As Integer = 100
Dim FormatPrice As String = String.Format("Price = |{0,10:c }|", myInt)
Console.WriteLine(FormatPrice)
The result shown is no number but the character c as in the format string.
Is the format not valid in this context?

Thanks for your assistance,
Kevin
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top