编号以0001为开始,数据库一设置表记录的序号是0000,如何取出这个值在累加1将其序号变成0001,
单证保存结束后,将数据库设置表记录序号改成0001,求教下!
我用
{
...
        string xx=ds.Tables[0].Rows[0]["Incode"].ToString();
        xx =Convert.ToString( Convert.ToInt32(xx) + 0001);
        LabNo.Text=Convert.ToString(xx);
}
这个我也试过了,不行。
        int xx=Convert.ToInt32(ds.Tables[0].Rows[0]["Incode"].ToString());
        xx =xx + 0001;
        LabNo.Text=Convert.ToString(xx);
出来都是一位数字。