string assetselfcode = assetcode.Substring(assetcode.Length-4,4);
int assetcodenext = Convert.ToInt32(assetselfcode)+1;
我想取出assetselfcode的后四位,然后转换成int型,再给他加1,int assetcodenext = Convert.ToInt32(assetselfcode)+1;
可是用Convert.ToInt32()后,比如取出的后四位是0001,就成了1了。
再加上1,为2,
怎么把这个2在转换成0002呢?