Josh streit
Josh streit

Reputation: 207

Assign Variables from Split

Okay, so I have this string, it's "x/y". How can I use the split function to rid the / and assign the x to myVariable and assign the y to myVariable2

Upvotes: 0

Views: 624

Answers (1)

John
John

Reputation:

dim MyVariable as string = xystring.split("/")(0)
dim MyVariable2 as string = xystring.split("/")(1)

Upvotes: 2

Related Questions