<-- Previous || Up || Next -->

Lookup Function
List Class

Public Function Lookup( _
      ByVal vValue As Variant _
    , Optional ByVal vCompare As Variant _
    ) As Boolean

Return True if the value vValue exists in the List.
Function returns False otherwise.

Example:
    Assuming
       Dim lstTemp As New List
       lstTemp.Add "FunctionName"
       lstTemp.Add "SubName"
    for example
       lstTemp.Lookup("SubName") = True
See also:
    Remove Function
    Add Function
vValue: The Value that will be searched for within the List. vValue can be any type of Variant value on which comparisons can be made using the EqualLikeDataTypeFast function (vbString, numeric, vbDate, etc.).
vCompare: Specifies the type of string comparison used to determine if Names match. vCompare defaults to the value of the Compare Property if it is missing.
v2.0 Change: Changed the vCompare argument so that it can no longer be Null or non-numeric. It is still Optional though, so it can be missing.

v1.1 BugFix: Fixed a bug in this function that caused it to not work in all cases.

Copyright 1996-1999 Entisoft
Entisoft Tools is a trademark of Entisoft.