2011年7月27日 星期三

[基本功] 字串補0

正如我老闆講的:我的基本功還要再加強,每次都忘記...


字串左邊補0:
dim oDate as string ="970101".PadLeft (7,"0")


右邊補0:
dim oDate as string ="970101".PadRight(7,"0")

沒有留言:

張貼留言