Tuesday, December 11, 2007

How to work with For Each-Next Statement in this example

How to work with For Each-Next Statement in this example

To work with For Each&ldots;Next Statement in this example

This Visual Basic language is used in this example. Inside a group 'MyCollection', if each element 'MyObject' to be word 'Beautiful', then exit from this condition:

For Each MyObject In MyCollection

If MyObject.Text = "Beautiful" Then

Found = False

Exit For

End If


No comments: