Vbscript - Search for word in String
Hi all,
I need to find a word in a string, to see if that string contains a particular word. If it does, then proceed to a particular function
So far I have the following below.
'If (InStr((sTaskSeqName),"Tablets") > 1) then
'tablet stuff
Elseif (inStr((sTaskSeqName),"LAPTOPS") = 1) then
'laptop stuff
Else
'Error message
End if
I need to find a word in a string, to see if that string contains a particular word. If it does, then proceed to a particular function
So far I have the following below.
'If (InStr((sTaskSeqName),"Tablets") > 1) then
'tablet stuff
Elseif (inStr((sTaskSeqName),"LAPTOPS") = 1) then
'laptop stuff
Else
'Error message
End if
0 Comments
[ + ] Show comments
Answers (2)
Please log in to answer
Posted by:
aogilmor
14 years ago
Posted by:
Thegunner
14 years ago
Rating comments in this legacy AppDeploy message board thread won't reorder them,
so that the conversation will remain readable.
so that the conversation will remain readable.