Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我想像这样在我的程序中打印结果:06:03在 Visual Basic 6 中如何在数字前添加“0”?
06:03
m=6 h=3 print m;" : ";h
像这样?
你必须使用Format()
Format()
m = 6 h = 3 Debug.Print Format(m, "00"); " : "; Format(h, "00")
输出:06:03