I have a code that is reading the contents of a xml tag and storing in a variable, e.g.

batchVal = TAN,BMC,MIZ

I want to replace the , by ',' so that final output looks like

batchVal = TAN','BMC','MIZ

Please note that the (') at the start and end has already been taken care of.

I am new to VB.Net and any help would be hugely appreciated

batchVal = batchVal.Replace(",", chr(39) & "," & chr(39)) replaces , with ','

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.