vb.net - users store a string separated by characters in a table -
i have string gets data field in database, such "daniel , camilo ; francis ;"
i need store them in new table, not walking string , names cutting character ';'
or go cutting string, no matter string modified, use table.
try string.split method. can pass array of possible separator characters parameter.
dim value string = "daniel , francis ; 1 , 2 , 4 , 5 ; ten" dim separatedvalues string() = value.split({","c, ";"c})
then can use array of separated values adding in new table
Comments
Post a Comment