IntelliPrompt member list not appearing in VB For Each Loop

SyntaxEditor .NET Languages Add-on for Windows Forms Forum

Posted 17 years ago by Dan Brown - Head of Development, Oppono Ltd
Version: 4.0.0253
Environment: Windows XP (32-bit)
Avatar
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:

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
Thanks again for all your help.

Regards,
Dan

Comments (1)

Posted 17 years ago by Actipro Software Support - Cleveland, OH, USA
Avatar
Thanks it appear that our grammar was requiring an expression after Next in the For Each instead of allowing that to be optional. This is fixed for the next maintenance release.


Actipro Software Support

The latest build of this product (v24.1.0) was released 2 months ago, which was after the last post in this thread.

Add Comment

Please log in to a validated account to post comments.