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
'Error message
End if
0 Comments   [ + ] Show Comments


Please log in to comment

Rating comments in this legacy AppDeploy message board thread won't reorder them,
so that the conversation will remain readable.


If you're doing what it looks like you're doing, look into the WMI function Chassis_type, I think win32_hardware
Answered 02/16/2010 by: aogilmor
Ninth Degree Black Belt

Please log in to comment
Would be good, but I need to use VBscript to do it as the rest of the script is like it.
Just wondering if what I am using will do the job?

Thanks for getting back to me.
Answered 02/16/2010 by: Thegunner
Second Degree Green Belt

Please log in to comment
Answer this question or Comment on this question for clarity