Posted 18 years ago
by Dan Brown
-
Head of Development,
Oppono Ltd
Version: 4.0.0253
Environment: Windows XP (32-bit)
Hi Again
You will be pleased to hear this is the last problem I have for now. The variable in a For Each Loop with specified a datatype does not seem to invoke the member list.
Example below:Thanks again for all your help.
Regards,
Dan
You will be pleased to hear this is the last problem I have for now. The variable in a For Each Loop with specified a datatype does not seem to invoke the member list.
Example below:
Public Class Test
Public ArrayOfInts() As Integer = {0, 1, 2, 3}
Public Sub TestForEachLoop()
For Each IntItem As Integer In Me.ArrayOfInts
IntItem. ' no member list on .
Next
End Sub
Public Sub TestForLoop()
Dim Counter As Integer
Dim IntItem As Integer
For Counter = 0 To Ubound(ArrayOfInts)
IntItem = ArrayOfInts(Counter)
IntItem. ' member list appears correctly on .
Next
End Sub
End Class
Regards,
Dan