在一行代码的末尾加一个分号有什么影响?
我在接下来的一些代码中看到了这个:
Printer.Print "Customer: " & strCustomerName & " (" & strCustomerCode & ")";
解决方法
一个 ;在
Print
statement结束时抑制通常的默认CRLF:
charpos – Specifies the insertion point for the next character. Use a semicolon to position the insertion point immediately after the last character displayed. Use Tab(n) to position the insertion point to an absolute column number. Use Tab with no argument to position the insertion point at the beginning of the next print zone. If charpos is omitted,the next character is printed on the next line.
(我的重点)