How to edit String

Hi all,
I am pretty new to this,
I want to change a string in the Format: 32100
To a string in the Format: 32’100

How can I do this?

I found a very unelegant way with an assign activity:

Max = Max(0) + Max(1) + ā€œ'ā€ + Max(2) + Max(3) + Max(4)

I am sure there has to be something better

@chusikowski What kind of format is it ?

1 Like

hello @chusikowski,

Will the apostrophe be consistently inserted after the 2nd number? I tried to use below code to arrive at ā€œ32’100ā€:

nameTop.Insert(2,"'").ToString

1 Like

@chusikowski - pls try to with String.Format like

String.Format(CultureInfo.InvariantCulture,
ā€œ{0:#’#}ā€, value)

input - 12345
output - 12’345

3 Likes

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