for Test2 Sub see #19How does the VB6/VB.NET compiler support optional parameters, and can that ability be implemented in B4X?
VB6
Private Sub Form_Load()
Test "a", "b", "Hello", d:=123
Test2 "s", 1, Null, 3, 4, 4, 5
End Sub
Sub Test(a As String, b As String, Optional c As String = "dasdasd", Optional d As Long)
Debug.Print c
End Sub
Sub Test2(ParamArray a() As Variant)
Debug.Print a(0)
End Sub