OK, im using vb.net and what i want to do is split a string into two parts and after the first part add another string and then join them together e.g.
String 1 - 'Hello there, what are you up too'
String2 - 'how are you,'
split Straing1 into two parts e.g. 'Hello there,' and 'what are you up too'
add both parts of string1 and string2 together e.g.
'Hello there, how are you, what are you up too'
I have a string full of identifiers e.g. "-r -t -g -u"
however the adentifierys dont always exist in the string, so i have to search for it:
gotargs = get_args(groupargslist) <<<< sets the string e.g. '-r -t -h -a -j -k'
search = gotargs.IndexOf("-a")
If search > 0 Then
so now what i want is to split this string AFTER the found possition being '-a' possiton 8
split the string into two and then join them together with the contents of another string in the middle.
I hope you follow that!
Gary
Start Free Trial