Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Searching within array
Message
 
To
30/01/2003 07:59:05
Anderson Girardi
Athenas Automação de Escritório
Porto Alegre, Brazil
General information
Forum:
Visual Basic
Category:
VBScript
Miscellaneous
Thread ID:
00747078
Message ID:
00747487
Views:
14
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
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform