seprate and store string in arrays

  • Thread starter Thread starter ilyaskazi
  • Start date Start date
I

ilyaskazi

i receive the string through txtbox= "jack;dave;john"

In above string there are 3 names seprated by 2 semicolon

I want to store names in array and display msgbox saying...

array="jack"
msgbox (array)

array="dave"
msgbox (array)

array="john"
msgbox (array)

plz note: string names can be in any numbers seprated by column.
Also it can be only one name with no semicolon.
 
no i don't want it to put in one msgbox.

there should be each msgbox to display for each-n-every names seprated
 
Then

Code:
--------------------

Dim x,i
x=split("jack;dave;john",";")
For i = Lbound(x) To Ubound(x)
msgbox x(i)
Next
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top