0

如何使用 Real Studio 从字符串中获取子字符串的索引?

例如,我想在下面的示例中获取World的索引

Dim str As String = "Hello World"
4

1 回答 1

3

查看http://docs.realsoftware.com/index.php/Instr中的 Instr() 方法

Dim pos As Integer
pos = str.InStr("World")
于 2011-12-09T14:27:37.770 回答