[Solved] Auto Increment the number [closed]

[ad_1]

in c#, you can do this

string s = "UK";
int counter = 0;
if (counter < 10000)
   result = s + counter++.ToString().PadLeft(4, '0');
else
   result = s + counter++.ToString();

Output: UK0000,UK0001,UK0002……

[ad_2]

solved Auto Increment the number [closed]