如何使用 Real Studio 从字符串中获取子字符串的索引?
例如,我想在下面的示例中获取World的索引
Dim str As String = "Hello World"
如何使用 Real Studio 从字符串中获取子字符串的索引?
例如,我想在下面的示例中获取World的索引
Dim str As String = "Hello World"
查看http://docs.realsoftware.com/index.php/Instr中的 Instr() 方法
Dim pos As Integer
pos = str.InStr("World")