Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
在 C++ 中有一个用于字符串查找的函数,其语法为 Str.find(substr),如果存在则返回子字符串的起始索引。我想知道是否有人知道在 VB.Net 中提供相同功能的函数。到目前为止,我还没有在我的搜索中找到一个。
Dim x as String ="ijoneodfpmwfg" Dim i as Integer = x.IndexOf("d") 'i will be 6 after execution
你真的应该看看这个页面来寻找答案。它会告诉你所有你可以用一个字符串做的事情,在你必须在这里提问之前,你可能会找到其他问题的答案:
字符串类