Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Searching within array
Message
 
À
30/01/2003 07:59:05
Anderson Girardi
Athenas Automação de Escritório
Porto Alegre, Brésil
Information générale
Forum:
Visual Basic
Catégorie:
VBScript
Divers
Thread ID:
00747078
Message ID:
00747487
Vues:
15
You have to loop through the array.
Private Sub Command1_Click()
Dim aArray
Dim intI As Integer

    aArray = Array("apple", "orange", "coconut", "banana")
    For intI = LBound(aArray) To UBound(aArray)
        If aArray(intI) = "banana" Then
            MsgBox "banana found at item " & CStr(intI)
            Exit For
        End If
    Next intI
End Sub
>Hi, how can i get the position of value of "Banana" into a array?
>
>aArray = Array("apple", "orange","coconut", "banana")
>
>and where can i find some documentation about how use it?
>
>thanks
>
>Anderson Girardi
Éric Moreau, MCPD, Visual Developer - Visual Basic MVP
Conseiller Principal / Senior Consultant
Moer inc.
http://www.emoreau.com
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform