Passing Arguments by Position and by Name

Sub Test ( arg1 As String,
  Optional arg2 As String = "bar",
           arg3 As Int = 42 )
  #Debug? "arg1=""" & arg1 & """" $N _
          "arg2=""" & arg2 & """" $N _
          "arg3=" & arg3 & $N
End Sub

Passing arguments by position

Call Test "foo", "baz", 3
Call Test "foo", , 3

Passing arguments by name

Call Test arg3 := 3, arg2 := "baz", arg1 := "foo"

Mixing arguments by position and by name

Call Test "foo", arg3 := 3, arg2 := "baz"

Supplying optional arguments by name

Restrictions on supplying arguments by name