请问一个从字符串中取值的问题

fafenglea 2006-02-04 01:10:36
Dim str
str="01001(张三),01002(李四),01003(王五)"
现在我就想取到01001,01002,01003,该怎么取?
...全文
72 6 打赏 收藏 转发到动态 举报
写回复
用AI写文章
6 条回复
切换为时间正序
请发表友善的回复…
发表回复
yelanne 2006-02-05
  • 打赏
  • 举报
回复
谢谢啊!呵呵
fafenglea 2006-02-04
  • 打赏
  • 举报
回复
yelanne(风)

我爱死你了
yelanne 2006-02-04
  • 打赏
  • 举报
回复
response.write ("str:"&tempstring)
yelanne 2006-02-04
  • 打赏
  • 举报
回复
Dim str
Dim tstr
Dim tempstr(100)
Dim tempstring
tempstring=""
str="01001(张三),01002(李四),01003(王五)"
tstr=split(str,",")
For i=0 to ubound(tstr)
tempstr=trim(tstr(i))
tempstr=split(tempstr,"(")
if tempstring="" then
tempstring= tempstr(0)
else
tempstring= tempstring&","&tempstr(0)
end if
Next
fafenglea 2006-02-04
  • 打赏
  • 举报
回复
看不懂
king_shadow 2006-02-04
  • 打赏
  • 举报
回复
sLetter=split(sString,"(")


-------------------------------
asp技术群4259772

28,406

社区成员

发帖
与我相关
我的任务
社区描述
ASP即Active Server Pages,是Microsoft公司开发的服务器端脚本环境。
社区管理员
  • ASP
  • 无·法
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告
暂无公告

试试用AI创作助手写篇文章吧