将1变成000001,123变成000123,前导添0,变成固定的6为数字
dim a as integer = 1 a = a.Tostring("D6") 'Decimal b= a.Tostring("X6") 'Hex参考MSDN https://msdn.microsoft.com/zh-cn/library/dd260048(v=vs.110).aspx 原文链接:https://www.f2er.com/vb/257595.html
将1变成000001,123变成000123,前导添0,变成固定的6为数字
dim a as integer = 1 a = a.Tostring("D6") 'Decimal b= a.Tostring("X6") 'Hex参考MSDN https://msdn.microsoft.com/zh-cn/library/dd260048(v=vs.110).aspx 原文链接:https://www.f2er.com/vb/257595.html