怎样求一个字符在另一字符串的位置,越简单越好
解决方案 »
- 求一同步存储过程(各位高人请多帮忙)
- vb 读取EXCLE文件问题
- VB调用Surfer8绘图为什么只能加16个坐标点,困惑。
- 关于结构!
- 如何知道在WindowsXP、Server 2003中已经设置为“显示常见任务”。
- 如何在Server端統計連線(用Winsock)人數???
- VB调用VC动态连接库DLL的问题,高手帮忙啊。
- 请教关于Rich Text Box的问题,高分求教
- 关于编写VB帮助的问题
- 我的问题:如何获得当前(sqlserver,sql agent..)当前服务状态(running,paused,stopped,...)
- 如何在水晶报表9(中文版)中实现如下的报表格式?急用.....
- 如何让vb应用程序有自己的图标
dim c="a"
dim CountNum as integerfor i=1 to len(str)
if mid(str,i,1)=a then
countnum=countnum+1
end if
next i
dim n as longstr1 = "acbdbdad12d56d98cd"
str2 = "d"
n = len(str1)
strTmp = replace(str1,str2,"")
msgbox str1 & " 在 " & str2 & " 中出现 " & n - len(strTmp) & " 次"
str1 = "acbdbdad12d56d98cd"
str2="d"
MsgBox "d 在 " & str1 & " 中出现 " & UBound(Split(str1, "d")) & " 次"
Dim str As String
str = "abcdaabcef"
Dim c As String
c = "1"
Dim temp As Variant
temp = Split(str, c)
Dim i As Integer 'i 为所求
i = UBound(temp)
Print iEnd Sub