For Each loop

vinians

Member
Licensed User
Longtime User
Guys I'm trying to find where is the documentation about "For Each" loop but I haven't found. Where is it ? Would be good if we had a documentation in chm format because it's easer to found what we want.
 

NJDude

Expert
Licensed User
Longtime User
Maybe this sample can help:
B4X:
Dim Days() As String
            
Days = Array As String("Monday", "Tuesday", "Wednesday", "Thursday", "Friday", "Saturday", "Sunday")

For Each I As String In Days
            
    Msgbox("Day " & I, "")
            
Next

The above code will show the days of the week one by one.

Read a little bit more HERE
 
Last edited:
Upvote 0

salmander

Active Member
Licensed User
Longtime User
Is this not right?

B4X:
        ContactList.FindByName("Yasmin", False)
   For Each contact1 As Contact In ContactList
      Log(contact1)
   Next
 
Upvote 0
Cookies are required to use this site. You must accept them to continue using the site. Learn more…