hi. The output of the function is expected to be like this:
Dim Result as String="AAAAA(Word1)BBBBB(Word2)CCCCC(Word3)DDDDD"
Q&A Assist did not have the expected result
Structure ResultItem
Public Value As String
Public Position As Integer
End Structure
Sub Test()
Dim lisResult As New List(Of ResultItem)
lisResult.Add(New ResultItem With {.Value = "(Word1)", .Position = 5})
lisResult.Add(New ResultItem With {.Value = "(Word2)", .Position = 10})
lisResult.Add(New ResultItem With {.Value = "(Word3)", .Position = 15})
dim MyString as String="AAAAABBBBBCCCCCDDDDD"
'Need a function with this achievement:
Dim Result as String="AAAAA(Word1)BBBBB(Word2)CCCCC(Word3)DDDDD"
End Sub