Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Optional parameters and how to deal with them
Message
From
20/05/2003 23:43:09
 
 
To
20/05/2003 23:30:46
General information
Forum:
ASP.NET
Category:
Other
Miscellaneous
Thread ID:
00790865
Message ID:
00790883
Views:
24
You have to change the method definition. Let's suppose your second parameter is the optional one, see how it should be written:
Private Function GetData(ByVal tcQuery As String, Optional ByVal tnProcess As Integer = 1) As String
End Function
Note that we say that the second parameter is "Optional", and we assign a default value for it (in this sample, 1), in the case that the caller hasn't passed it.
Claudio Lassala
Previous
Reply
Map
View

Click here to load this message in the networking platform