Quantcast
Channel: VBForums - Visual Basic .NET
Viewing all articles
Browse latest Browse all 27481

VS 2019 To Add strings in between the Concatenated String

$
0
0
Dear All
Wishing you Happy and Prosperous New Year :)


How can I add following Strings in Concatenated String country names like below representations
Will appreciate respective codes for below representations
Code:

Dim countryNamesToSplit As String = "Austria, New ZeaLand, Brazil, US, UK, China, Japan"
Dim countryNames = String.Concat(countryNamesToSplit.Split(","c).Take(7))
MsgBox(countryNames)

Code:

Part One Representation
"Austria Europe, New ZeaLand Eleven, Brazil Footballers, US IT, UK London, China Productivity, Japan Tokyo"

Code:

Part Two Representation
"Austria Country, New ZeaLand Country, Brazil Country, US Country, UK Country, China Country, Japan Country"

Thanks nkvb

Viewing all articles
Browse latest Browse all 27481

Trending Articles



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