J
Jonas
Hi!
If I want to get the first element of a delimited string, which of this two
methods would be the best performancevise?
Dim s0 as String = "abc;def;ggg"
Dim s1 as String
Dim s2 as String
Method 1:
s1 = s0.Split(";")(0)
Method 2:
s2 = s0.Substring(0, s0.IndexOf(";"))
Brgds
Jonas
If I want to get the first element of a delimited string, which of this two
methods would be the best performancevise?
Dim s0 as String = "abc;def;ggg"
Dim s1 as String
Dim s2 as String
Method 1:
s1 = s0.Split(";")(0)
Method 2:
s2 = s0.Substring(0, s0.IndexOf(";"))
Brgds
Jonas