Ryan wrote:
The code below gives me an error of "expression expected" at the first curly
brace. Thanks for any help.
Public Sub PopulateForm(Optional ByVal myID As Integer = -1, Optional ByVal
myRecipients() As Integer = {-1})
From the docs ('Parameter List'):
defaultvalue
Required for Optional parameters. Any constant or constant expression
that evaluates to the data type of the parameter. If the type is Object,
or a class, interface, array, or structure, the default value can only
be Nothing.
--
Larry Lard
la*******@googlemail.com
The address is real, but unread - please reply to the group
For VB and C# questions - tell us which version