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
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?