gpt4 book ai didi

vb6 - 行尾的分号有什么作用?

转载 作者:行者123 更新时间:2023-12-01 10:07:08 25 4
gpt4 key购买 nike

在代码行末尾加分号有什么作用?

我已经在我接管的一些代码中看到了这一点:

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,它不会列出),但我希望它会做同样的事情。

关于vb6 - 行尾的分号有什么作用?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/9290731/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com