Have a look at the msdn link below, it will explain in detail what the := symbol is used for.
Passing Arguments by Position and by Name
Basically, it is used to set the value of the arguments in your call to a Sub/Function by their parameter Names instead of setting them in their specified order, separated by commas. You will see the := used with subs and functions that have several
Optional parameters.
For example, this example sub has three Optional parameters, a, b, and c.
- Private Sub DoSomething(Optional a As Integer = 0, Optional b As Integer = 0, Optional c As Integer = 0)
-
-
End Sub
-
You can call this sub by specifying the name of parameter you want to set. Suppose I only want to set the c parameter to a value of 10 when I call it. I can do this...
On the other hand, you could call this sub and separate each parameter with a comma like below, and get the same result.