I have a long string that have a “,” between each couple of chars
and I want to create a list of strings, that each string will be those chars between the “,”
Example:
“asdf asdf asdf, asdfasdf asdfasdf asdf, asdfas asdf asdfre, werg ethjer rtherrh” and so on
and I want it to give:
{“asdf asdf asdf”, “asdfasdf asdfasdf asdf”, “asdfas asdf asdfre”, “werg ethjer rtherrh”}
I want all this so I could create a dropdown in the activity ‘Input Dialog’, if anyone have another suggestion please
You have already done it buddy
Yes we don’t need to use String.Join method and then again split it
Rather we can directly mention this expression in a assign activity like this arr_string = configTable.AsEnumerable().Select(Function(a) a.Field(Of String)(“Name”).ToString).ToArray()
Where arr_string is a variable of type array of string
Now mention this in OPTIONS property in INPUT DIALOG BOX activity
well you can do this
ArrayVar=StringVar.Split(vbNewLine.ToCharArray)
ArrayVar = ArrayVar.Where(Function(x) Not String.IsNullOrWhiteSpace(x)).ToArray
and loop through this string using for each and split based on characters