当前位置:
代码迷
>>
ASP
>> 如何把数字格式化为0001之类的样子呢
详细解决方案
如何把数字格式化为0001之类的样子呢
热度:
66
发布时间:
2012-03-23 12:06:21.0
怎么把数字格式化为0001之类的样子呢?
1 0001
2 0002
3 0003
4 0004
……
10 0010
11 0011
格式化结果如上, 有直接函数吗?
------解决方案--------------------
If Len(Counts)=1 Then
Counts= "000 "&Counts
End If
If Len(Counts)=2 Then
Counts= "00 "&Counts
End If
If Len(Counts)=3 Then
Counts= "0 "&Counts
End If
相关解决方案
"0001"字串作为参数传给javaScript函数里边,会变成"1"如何保证"0001"字串不被改变
0001+x用什么算法能做出来啊解决办法
java如何从获得 0001——9999 字符串
10-0001 3dsmax快捷键
00-0001 print(万物初始);