Check Item in VBScript Array without splitting array

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • Soniad
    New Member
    • Jan 2009
    • 66

    #1

    Check Item in VBScript Array without splitting array

    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.
    Code:
      Dim StrFlExt
      StrFlExt = "doc"
    and here is array of file extensions :
    Code:
      Dim myArray
      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"
  • jhardman
    Recognized Expert Specialist
    • Jan 2007
    • 3405

    #2
    You'll have to loop through it.

    Jared

    Comment

    Working...