Ver Mensaje Individual
  #3 (permalink)  
Antiguo 03/12/2008, 04:18
Avellaneda
Colaborador
 
Fecha de Ingreso: enero-2008
Ubicación: Unas veces aquí, otras veces allí
Mensajes: 1.482
Antigüedad: 16 años, 3 meses
Puntos: 37
Respuesta: VB6 - Buscar dentro de un array

Cita:
Iniciado por Laufwerk Ver Mensaje
de momento tengo hecho esto, pero me salta un error que dice "Calificador no valido"

Esta es mi función
Código:
Function NoEsta(numPet As String, arrayNumPet() As String) As Boolean
    Dim posiciones As Integer
    posiciones = arrayNumPet.Len
    
    For i = 0 To posiciones - 1
        If arrayNumPet(i) = numPet Then
            NoEsta = True
        Else
            NoEsta = False
        End If
    Next i
End Function
Gracias de nuevo
Hola, modifica esta línea

For i = 0 To UBound(arrayNumPet)

Y no necesitas la variable 'posiciones'.