Wish Add Split function to String type

qsrtech

Active Member
Licensed User
Longtime User
Pls try and add the "Split" function to the String type. I realize we can use regex but it's nice to keep things simple.

For example
Dim S as String
Dim Elements() as String
s=something
Elements=s.split(",")

or
Dim S as string
S=something
For Each E as String in s.split(",")
Next

You could even add overloaded splits (or Split2,Split3 etc.) that return a list, or something else useful.

Thanks!
 

qsrtech

Active Member
Licensed User
Longtime User
Pls try and add the "Split" function to the String type. I realize we can use regex but it's nice to keep things simple.

For example
Dim S as String
Dim Elements() as String
s=something
Elements=s.split(",")

or
Dim S as string
S=something
For Each E as String in s.split(",")
Next

You could even add overloaded splits (or Split2,Split3 etc.) that return a list, or something else useful.

Thanks!

Thank you, I know we already have RegEx. I would rather see the "string" type enhanced than rely on "libraries". Newbies wouldn't have to go hunting around to find a function that could be an included extension of the String type. You could also include the "For Each" example in the tooltip help. An ever better idea would be a feature to "copy" the example code in the tooltip to the clipboard or insert it directly in the code. Maybe just update the tooltip so the code can be selected/copied?
 
Top