我想启动auto incrment number form stat - STD000001 [英] I want to start auto incrment number form stat - STD000001

查看:77
本文介绍了我想启动auto incrment number form stat - STD000001的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想开始自动输入数字表格统计 - STD000001





请任何人帮助我紧急.Suppose emp id is因此,文本框ID是自动生成开始与emp ex:emp10,emp11,emp12 .....请给我答案

解决方案

如果我理解正确,您希望String的数字部分始终具有相同的长度。



试试这个:

  int  myInt =  23 ; 
string myString = STD + myInt.ToString( 0000);


I want to start auto incrment number form stat - STD000001


Please any one help me its urgent .Suppose emp id is there so in that textbox id is autogenerate start with emp ex: emp10,emp11,emp12.....Please give me the answer

解决方案

If I understood correctly, you want the number part of the String to be always the same length.

Try this:

int myInt = 23;
string myString = "STD" + myInt.ToString("0000");


这篇关于我想启动auto incrment number form stat - STD000001的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆