Symantic Parser flags ReDim array(0) as error in VB

SyntaxEditor .NET Languages Add-on for Windows Forms Forum

Posted 14 years ago by Dan Brown - Head of Development, Oppono Ltd
Version: 4.0.0253
Environment: Windows XP (32-bit)
Hi Guys

Another one:

Public Class Test
    Public Shared Sub AddStrToArray(ByVal str As String, ByRef array() As String)
        If IsNothing(array) Then
            ReDim array(0) ' red squiggle "( expected"
            ReDim Preserve array(array.GetUpperBound(0) + 1) ' red squiggle "( expected"
        End If
        array(array.GetUpperBound(0)) = str
    End Sub
End Class


Comments (1)

Posted 14 years ago by Actipro Software Support - Cleveland, OH, USA
Thanks this was due to a bug in the redim clause grammar. It's now fixed for the next maintenance release.

Actipro Software Support

The latest build of this product (v21.1.1) was released 14 days ago, which was after the last post in this thread.

Add Comment

Please log in to a validated account to post comments.