Posted 1 year 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 1 year ago]

Comments (3)

Answer - Posted 1 year 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 1 year ago by Gavin Huet
Avatar

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

Posted 1 year 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.1) was released 28 days ago, which was after the last post in this thread.

Add Comment

Please log in to a validated account to post comments.