문제

What is the proper syntax for declaring an option parameter of type String(); means how do I assign it a default value of empty array (not Nothing):

Function SomeFunc(id as Integer, name as String, Optional values() As String = ???)

I tried with {} but it doesn't accept that, saying "A constant expression is required", which also means it won't accept anything like New String().

도움이 되었습니까?

해결책

hi You can Try This..

function example(optional ByVal arr1() as System.Array = nothing)
라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top