How to insert "," before the last two symbols into a string

Hi,
I’m looking for a way to insert “,” before the last two symbols into a string.
Any suggestions?

Thanks in advance :slight_smile:

@Simas_samis

Can you please share one string example so that i can help you with some pointers.

the String is a number with no consistant lenght.
example: 21412406

@Simas_samis

Please find the attached xaml file.
StringInsert.xaml (8.2 KB)

Try to run it and let me know if this works for you.

1 Like

@Simas_samis,

Try below one:

str = "21412406"
str.Insert(str.Length-2,",")

2 Likes

This topic was automatically closed 3 days after the last reply. New replies are no longer allowed.