Thread Rating:
  • 1 Vote(s) - 3 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Split function in string
#1
Solved: 10 Years, 9 Months ago
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?
Reply


Messages In This Thread
Split function in string - by nidhishnair - 05-22-2011, 03:28 PM
RE: Split function in string - by helmzshelmz - 07-07-2020, 03:47 PM
RE: Split function in string - by lalithome - 05-23-2011, 11:28 AM
RE: Split function in string - by nidhishnair - 05-23-2011, 12:18 PM
RE: Split function in string - by Anand - 05-23-2011, 01:28 PM
RE: Split function in string - by nidhishnair - 05-23-2011, 02:39 PM
RE: Split function in string - by Anand - 05-24-2011, 10:40 AM
RE: Split function in string - by nidhishnair - 05-24-2011, 06:42 PM
RE: Split function in string - by hamzaz - 04-23-2012, 02:24 PM
RE: Split function in string - by Ankesh - 04-23-2012, 04:01 PM
RE: Split function in string - by Ram2009 - 04-26-2012, 07:33 AM
RE: Split function in string - by nikhilcogni - 03-01-2013, 11:00 PM

Possibly Related Threads…
Thread Author Replies Views Last Post
Question Split Function Chaithra N 0 1,015 12-18-2019, 11:33 AM
Last Post: Chaithra N
  Split a string with multiple delimiters in VBScript nandha 2 7,963 02-10-2018, 06:44 PM
Last Post: nandha
  Calling a function in a Test Script from a function library anupam4j 3 5,905 06-26-2015, 12:31 AM
Last Post: babu123
  Replace a string in a word document with another string rekha.naik 8 15,010 11-14-2013, 12:58 PM
Last Post: pranikgarg
  Split Function diya 2 5,557 11-28-2012, 08:49 PM
Last Post: diya

Forum Jump:


Users browsing this thread: 2 Guest(s)