|
it
newsgroups
|
|||||||||||||||||||||||
|
|||||||||||||||||||||||
split question
Can anyone help me with a simple split problem. I've never done it
before and I have no clue. I have value sSearch = Lastname Firstname I need to split it into two separate field: sLast = Lastname sFirst = Firstname I tried arrSearch = split(sSearch, " " ) but how do I actually get the values? thanks in advance for your help Lisa for i = 0 to ubound(arrSearch)
Show quote response.write i & " = " & arrSearch(i) & "<br>" next "peashoe" <peas***@yahoo.com> wrote in message news:1150377080.284479.133980@u72g2000cwu.googlegroups.com... > Can anyone help me with a simple split problem. I've never done it > before and I have no clue. > > I have value sSearch = Lastname Firstname > > I need to split it into two separate field: > sLast = Lastname > sFirst = Firstname > > I tried > arrSearch = split(sSearch, " " ) > but how do I actually get the values? > > thanks in advance for your help > Lisa > thanks Aaron,
but I don't need to display the data. I just need to grab it so I can do a sql select to get other data. Therefore, I need to actually have two values: sLast and sFirst... Make sense? ~L~ "peashoe" <peas***@yahoo.com> wrote in message Okay, so don't response write, I was just showing you how to quickly see the news:1150378032.153406.112280@i40g2000cwc.googlegroups.com... > thanks Aaron, > but I don't need to display the data. I just need to grab it data after the split. |
|||||||||||||||||||||||