Posted 9 months ago by Gavin Huet
Version: 23.1.1
Platform: .NET 6.0
Environment: Windows 11 (64-bit)
Avatar

Hi,
If we call a VB method that can have optional parameters, the syntax error reports an issue and puts the error squiggles under the code even though it compiles and can run.

	Public Class TestSyntaxParse
		
		Private Function MethodWithOptionalParamaters(Optional parameter1 As String = "", Optional parameter2 As String = "", Optional parameter3 As String = "")
			Return True
		End Function
		
		Private Function TestMethodWithOptionalParameters
			Return MethodWithOptionalParamaters(, , ,)
		End Function
		
	End Class

The syntax error will highlight the following line with this issue:

Return MethodWithOptionalParamaters(, , ,)

The syntax error is : "')' expected".

Thanks
Gavin

[Modified 9 months ago]

Comments (3)

Answer - Posted 9 months ago by Actipro Software Support - Cleveland, OH, USA
Avatar

Hi Gavin,

Thanks for reporting this.  We've fixed it for the next maintenance release.


Actipro Software Support

Posted 9 months ago by Gavin Huet
Avatar

Thanks team, when is the next maintenance release for WinForms schedule for?

Posted 9 months ago by Actipro Software Support - Cleveland, OH, USA
Avatar

Hi Gavin,

We're aiming for the next week or two.


Actipro Software Support

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

Add Comment

Please log in to a validated account to post comments.