|
-
Feb 10th, 2005, 04:53 PM
#1
Strong Typed Optional Array Parameter
Does anyone know how to create a strongly typed byref optional array to a sub/function in VB? I have sub I'm working on where the last three parameters are optional. The last two happen to be arrays (one should be boolean and the other string).
If I was to require the parameters, then I'd simply call it like so:
ByRef ColumnHeaders As String, ByRef VisibleCols() As Boolean, ByRef ColumnFormats() As String
But I want them to be optional.
But when I add Optional to the array parameters, I get a syntax error saying that they should be variant or some specific type with a default value.
Tg
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|