Adding ZERO at the Beggining of Integer Variable

Hi all,

i need to add a zero to integer variable in the begging of value but i do not know how can i do that.
Variable should be integer because i’m going to use this variable somewhere else and it must be used as an integer.
ex : 5 => 05


use :


an integer internally will not accept a preceding 0
we will keep the integer and will use it as a string when the preceeding 0 is needed


Also try this :

Thanks for answer. and
I’m getting this error. "Cannot assign from type ‘System.String’ to type ‘System.Int32’ in Assign activity ‘Assign’ "

i did like that assign acitivty => number(Integer) => CInt(5).ToString(“D2”)

I need to say user enters an integer value and keeping this number in ‘number’ variable which is an integer.

it is returning a string:

kindly note:

1 Like


It will work on the string only.

I got the idea. Thanks for help. (@Vaibhav_Rajpoot_17 @ppr)


If your problem is solved …marked it as solution for future reference.

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