By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
438,162 Members | 1,038 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 438,162 IT Pros & Developers. It's quick & easy.

Check Item in VBScript Array without splitting array

Soniad
P: 66
Hi All,

Is there any way in VBScript Array,where I can check if particular item is present in given array items.
For Example :

There is file extention I want to check.
Expand|Select|Wrap|Line Numbers
  1.   Dim StrFlExt
  2.   StrFlExt = "doc"
and here is array of file extensions :
Expand|Select|Wrap|Line Numbers
  1.   Dim myArray
  2.   myArray = Array("doc","xls","jpg","gif")
Now I want to compare/Check whether "StrFlExt" is present in one of the array item.without splitting this array.

Regards,
"D"
Nov 8 '10 #1
Share this Question
Share on Google+
1 Reply


jhardman
Expert 2.5K+
P: 3,405
You'll have to loop through it.

Jared
Nov 8 '10 #2

Post your reply

Sign in to post your reply or Sign up for a free account.