im working on a project that is calculating the total population for given countries and its in the hundreds of thousands. And i need to output the population with the ,’s in the appropriate places.
Ex. population 123456789
i need to output it in a listbox as
123,456,789
so im looking for a converter function or something built in that takes my value
Dim population as int
and adds it appropriately
Lbxdata.Items.Add("----------------------------")
Lbxdata.Items.Add(("Total Countries Selected " & countrycount))
Lbxdata.Items.Add(("Total Population Selected " & (totalPopulation))
Lbxdata.Items.Add("----------------------------")
is what i have atm.
Use String.Format to format the lines: