在一行代码的末尾加一个分号有什么影响? 我在接下来的一些代码中看到了这个: Printer.Print "Customer: " strCustomerName " (" strCustomerCode ")"; 一个 ;在 Print statement结束时抑制通常的默认CRLF:
我在接下来的一些代码中看到了这个:
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.
(我的重点)
我找不到Printer.Print的参考(如果你点击“方法”链接here,它没有列出),但我希望它做同样的事情.