Question Locked

split in VB.Net

0 helpful
2 replies
Closed to new repliesThis discussion is closed. It stays readable, but it takes no new replies.

i have a string as " john,abraham "
i want t split this as
FirstName = john
SecondName = abraham

how to use split in VB.Net?

2 replies

by e.rajainfo

Dim strNames() As String
allnames="john,abraham,etc"
strNames= allnames.Split(",")
firstName=allnames(0)
secondName=allnames(1)

This discussion is closed to new replies.