preload

QTP Math functions – Check Item in Set

Posted by Albert Gareev on Mar 23, 2008 | Categories: MathSource code

Parent page: Service Functions – Math (QTP, VBScript)

Check whether an item is in set

Public Function isItemInSet(ByVal stSet, ByVal sItem, ByVal sSetSeparator)
  Dim dvArray

  If sItem = "" Then
    isItemInSet = False
    Exit Function
  End If
   
  dvArray = Set2Array(stSet, sSetSeparator)
  isItemInSet = isItemInArray(dvArray)  

End Function



Creative Commons Attribution-NonCommercial-NoDerivs 3.0 Unported
This work by Albert Gareev is licensed under a Creative Commons Attribution-NonCommercial-NoDerivs 3.0 Unported.