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

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 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"
        Else
            ReDim Preserve array(array.GetUpperBound(0) + 1) ' red squiggle "( expected"
        End If
        array(array.GetUpperBound(0)) = str
    End Sub
End Class
Thanks

Regards
Dan

Comments (1)

Posted 17 years ago by Actipro Software Support - Cleveland, OH, USA
Avatar
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 (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.