Wednesday, May 29, 2013

Need to have ID in the format, "OSR000001" in a workflow

Hi.


Try to use the PadLeft Method


http://msdn.microsoft.com/it-it/library/system.string.padleft(v=vs.80).aspx


to add the right number of '0' after the "OSR" prefix.



const string PREFIX = "OSR";
string myS = "3";
myS = myS.PadLeft(6, '0');
myS = PREFIX + myS;






Regards,

Bubu

http://zsvipullo.blogspot.it



Please mark my answer if it helped you, I would greatly appreciate it.


No comments:

Post a Comment