gpt4 book ai didi

string - Visual Basic 字符串工具

转载 作者:行者123 更新时间:2023-12-04 06:19:10 24 4
gpt4 key购买 nike

在字符串 visual basic 中插入引号 ("")

Dim str As String

str = "*.doc" & "," & "*.docx"

我想要文本框显示 "*.doc"& ","& "*.docx"

最佳答案

写出你想要的字符串:

str = "*.doc" & "," & "*.docx"

将引号加倍以转义它们:

str = ""*.doc"" & "","" & ""*.docx""

然后引用整个字符串:

str = """*.doc"" & "","" & ""*.docx"""

?str
"*.doc" & "," & "*.docx"

关于string - Visual Basic 字符串工具,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/11874990/

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