locked
Purpose of $ in formatting RRS feed

  • Question

  • Dim monthNames = DateTimeFormatInfo.CurrentInfo.AbbreviatedMonthNames
         
    ' Display the month names.
    Console.Write(
    "    ")
    For ctr = 0 To sales.GetUpperBound(0)
          Console.Write($
    " {monthNames(ctr)}   ")
    Next  

    1. Can anyone please explain the purpose of "$" in the console.write? Can it be used only with string arguments? Incase you know of a link where I can read up more on the use of the $ sign, please do share.

    2. I assume the monthNames is by default being set to an array of string type with 13 elements?




    Sougata Ghosh

    Sunday, July 22, 2018 12:09 PM

Answers