问题描述 如何用vb实现string类的indexof(substring)功能 求代码 不要求调用vb中的indexof功能,而是自己写.应该是类似于把string变成chars()然后自己查找位置之类的,但是不会写,求大神 解决方案 最简单的 function foo(str as string, sfind as string) as integer dim i as integer dim r as integer r = -1 for i = 1 to len(str) - len(s
问题描述 VB与西门子s7-300通讯,提示w95_s7.dll未找到 Option Explicit Public Declare Function load_tool Lib "w95_s7.dll" (ByVal nr As Byte, ByVal dev As String, adr As PlcAdrType) As Long Public Declare Function db_read Lib "w95_s7.dll" (ByVal blockno A