Replace add string to text with spcific start index and end index
Application Type
Traditional Web

Dear All,


I have a problem, where i want to add text string into the text.

Example 

Old string: "Police" -> Index 1-6

Add "man" string into Old string with start index in 7-9

So New string like this

New String: "Policeman" -> Index 1-9


Regards,

Kane

Solution

Is a little different from what I had understood, but here's what I would do in this situation:

The result:

Hi Eduardo,


Is it possible to share the oml?


Thanks,

Kane

Yes i can of course.

If it works, remember to mark it as a solution. It was a very specific case, but it can help other people


ConcatWithIndex.oml

Hi Kane,

I did it as follows:

That was the result:

Best regards

Hi Eduardo,

Thanks for your quick support

But i want to add text by start index and end index

Another example:

Old String: “Police”

String to add: “B”

Start index: 7

End index: 10

The result like this: “PoliceBBBB”


Thanks

Kane

Solution

Is a little different from what I had understood, but here's what I would do in this situation:

The result:

Hi Eduardo,


Is it possible to share the oml?


Thanks,

Kane

Yes i can of course.

If it works, remember to mark it as a solution. It was a very specific case, but it can help other people


ConcatWithIndex.oml

Hi @Kane Loony ,

why don't you use built in text function like Concat("Police","Man")
Concat(var1,var2)



Thanks,

Sai. 

Community GuidelinesBe kind and respectful, give credit to the original source of content, and search for duplicates before posting.