Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
split a variable
#3
Solved: 10 Years, 10 Months, 3 Weeks ago
Try using Split function.
Example:
Code:
Dim StrMsg, MyArray
StrMsg = "$2000"
MyArray = Split(StrMsg, "$", -1, 1)
' now
' MyArray(0) contains ""
' MyArray(1) will contain 2000

Msgbox MyArray(1)
Reply


Messages In This Thread
split a variable - by Brian - 04-15-2008, 04:59 PM
RE: split a variable - by stech - 04-15-2008, 07:06 PM
RE: split a variable - by niranjan - 04-15-2008, 07:09 PM
RE: split a variable - by mag - 04-17-2008, 02:26 PM

Possibly Related Threads…
Thread Author Replies Views Last Post
  Split function in string nidhishnair 13 63,708 07-07-2020, 03:47 PM
Last Post: helmzshelmz
Question Split Function Chaithra N 0 1,040 12-18-2019, 11:33 AM
Last Post: Chaithra N
  Split a string with multiple delimiters in VBScript nandha 2 8,085 02-10-2018, 06:44 PM
Last Post: nandha
  Split Function diya 2 5,612 11-28-2012, 08:49 PM
Last Post: diya
Question Deatils on Split action with Nested type sams001 0 3,252 10-30-2012, 03:03 PM
Last Post: sams001

Forum Jump:


Users browsing this thread: 1 Guest(s)