Private Sub Form_Activate()
For i = 1 To 9
For j = 1 To 9
s = i * j
Print Format(s, \"#\"); Tab(j * 4);
Next j
Print
Next i
End Sub
請問一下各位程式先進們,
我這個乘法表雖然有對齊到...
但是他的末位沒有對齊到(個位數)...
請問要怎麼修改我的小程式呀?
2006-05-08 14:49:10 · 1 個解答 · 發問者 小威 2 in 電腦與網際網路 ➔ 程式設計
Private Sub Form_Activate()Me.FontName = "細明體"For i = 1 To 9 For j = 1 To 9 s = i * j Print String(2 - Len(s) + (j = 1), " ") & s; Tab(j * 4); Next PrintNextEnd Sub
2006-05-08 15:31:23 · answer #1 · answered by W.J.S. 7 · 0⤊ 0⤋