如何在列表中创建序列号以及如何以表格形式显示序列号 [英] how to create serial number in a column table and also want to display serial number in a form

查看:95
本文介绍了如何在列表中创建序列号以及如何以表格形式显示序列号的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

大家好,

我想知道如何创建一个序列号列..让我们说以"SA00001"或"00001"开头.....

然后在我的表单中,用户将以具有上述序列号的形式插入数据.

编号:SA00001
姓名:
数量:
总计:

请帮助我

在此先感谢
musiw.

hi all,

i want to know how to create column which is a serial number..lets say start with ''SA00001'' or ''00001''........

and then in my form, user will insert data in a form which has a serial number stated above.

No: SA00001
Name:
Quantity:
Total:

please help me on this

thanks in advance
musiw.

推荐答案

1)获取数字部分中存在的当前最大值.
2)创建序列号的字符串值,并将适当的字符串前缀和左侧填充的数字部分附加在一起.
3)当您编写的代码不能满足您的要求时,请发布您自己编写的代码,我们将很乐意为您提供更多帮助.
1) Get the current maximum value that exists from the numeric portion.
2) Create a string value of the serial number appending the appropriate string prefix and the left padded numeric portion together.
3) When the code you write doesn''t do quite what you want, post the code you wrote yourself and we''ll be glad to help more.


这篇关于如何在列表中创建序列号以及如何以表格形式显示序列号的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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