Type into activity with variable and string

Hi all,

I’m currently dealing with an issue with the ’ Type into’ activity, which I would like to use a variable as well as a string in the activity.
The variable would be a Counter, which is in a loop so that it would increase by one everytime.
The string would be a number of digits, which won’t change such as ‘12345’.
What I want to type into would be: 12345-Counter (Counter would be a number ranging from 0 to 10).
What should I put in the ‘type into’ activity? I tried ‘12345-Counter’, but when I do this, the Counter would be characters rather than the number I want.

Thank you.

Can you try the following?

"12345-"+Counter.ToString()

Regards,

“12345”+yourcounttervariable.tostring

please go through the string manipulation practices

Hi @Yoichi , it works pretty well. And I’m also wondering, If I want to put ‘12345-Counter+1’, what should I put in the activity?

HI,

If Counter is Int32 etc, the following will work.

"12345-"+(Counter+1).ToString()

Regards,

1 Like

Thank you, it works perfectly!!

1 Like

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