05-22-2011, 03:28 PM
I am unable to split a string using split function. i want to split jus the characters and not the nos.
var=blah 1234
i tried by:
sp_var=split(var, " ")
but it is somhow not taking <space> as a delimiter. I took the strlen and the no of spaces in between were 4.
when i try
sp_var=split(var,"1")
msgbox sp_var 'blah is displayed
but the nos are dynamic and hence i cannot use those as a delimiter. is there any other way to split this string? could there be any other sp char for 4 spaces? Or are there any other functions that i can use?
var=blah 1234
i tried by:
sp_var=split(var, " ")
but it is somhow not taking <space> as a delimiter. I took the strlen and the no of spaces in between were 4.
when i try
sp_var=split(var,"1")
msgbox sp_var 'blah is displayed
but the nos are dynamic and hence i cannot use those as a delimiter. is there any other way to split this string? could there be any other sp char for 4 spaces? Or are there any other functions that i can use?