本文介绍了VB拆分功能问题的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我想知道是否有人可以向我展示或说明如何进行以下操作
假设我有3个名字[有数百个,但只能说3个]
Preview.Networks.Video.Trailers
工具辅助
TVICaisa
使用
I was wondering if anyone could show me or explain how to do the following
Say I have 3 names [there ARE hundreds, but lets just say 3]
Preview.Networks.Video.Trailers
Tool.Assisted
TVICaisa
using
AddonName = Replace(Replace(Replace(Replace(Replace(Replace(UpdateRepo("AddonName"),"'","''")," ","."),"(","."),")","."),"[","."),"]",".")
ANLine = AddonName
ServiceList = Split(ANLine , ".")
TheFirst = ServiceList(0)
TheSecond = ServiceList(1)
WScript.Echo TheFirst
WScript.Echo TheSecond
WScript.Echo AddonName
并且当然可以在第2个名字上使用,但在第3个名字上消失,因为TheSecond ServiceList()
为null.
如何解决这个问题?
and of course it works on the 1st 2 names but dies on the 3rd because TheSecond ServiceList()
is null.
how can I get around this?
推荐答案
这篇关于VB拆分功能问题的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!