加入收藏 | 设为首页 | 会员中心 | 我要投稿 李大同 (https://www.lidatong.com.cn/)- 科技、建站、经验、云计算、5G、大数据,站长网!
当前位置: 首页 > 百科 > 正文

vb6 – 在行尾有分号的影响是什么?

发布时间:2020-12-17 07:10:34 所属栏目:百科 来源:网络整理
导读:在一行代码的末尾加一个分号有什么影响? 我在接下来的一些代码中看到了这个: Printer.Print "Customer: " strCustomerName " (" strCustomerCode ")"; 解决方法 一个 ;在 Print statement结束时抑制通常的默认CRLF: charpos – Specifies the insertion p
在一行代码的末尾加一个分号有什么影响?

我在接下来的一些代码中看到了这个:

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,它没有列出),但我希望它做同样的事情.

(编辑:李大同)

【声明】本站内容均来自网络,其相关言论仅代表作者个人观点,不代表本站立场。若无意侵犯到您的权利,请及时与联系站长删除相关内容!

    推荐文章
      热点阅读