mzucker
(Martin Zucker)
July 23, 2019, 5:37am
1
I have a number of codes which I want to split into two variables
000000-10
000000-18
122200-54
282888-32
They are always separated by the -.
I would like to get the following as a result
000000
10
000000
18
122200
54
282888
32
Any help is greatly appreciated.
Thanks!
1 Like
Hey @mzucker
You can use Split(variableName, “-”)(0) for the left string and Split(variableName, “-”)(1) for the right string.
Thanks and regards,
Despi
14 Likes
Vashisht
(Vashisht Devasani)
July 23, 2019, 5:57am
3
Hi @mzucker ,
1.strName = “000000-10”
2. strName.split("-"c)(0)
strName.split("-"c)(1)
3.Output:
000000
10
4.In the same way for all others bro.
Cheers.
Vashisht.
system
(system)
Closed
July 26, 2019, 5:57am
4
This topic was automatically closed 3 days after the last reply. New replies are no longer allowed.