Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Detecting if a parameter has been passed
Message
From
10/12/1997 11:47:10
 
 
To
All
General information
Forum:
Visual Basic
Category:
Coding, syntax & commands
Title:
Detecting if a parameter has been passed
Miscellaneous
Thread ID:
00065022
Message ID:
00065022
Views:
84
I thought I had the correct syntax to detect if a parameter has been passed.

I have the following method which accept a parameter and I would like to know if the parameter was passed.

Sub Cleanup(Optional tnError As Integer)

' If we pass a parameter
If VarType(tnError) = 2 Then
lnLastError = tnError
End If

But, this is not working because even if the tnError is not passed, the type is still integer.
Michel Fournier
Level Extreme Inc.
Designer, architect, owner of the Level Extreme Platform
Subscribe to the site at https://www.levelextreme.com/Home/DataEntry?Activator=55&NoStore=303
Subscription benefits https://www.levelextreme.com/Home/ViewPage?Activator=7&ID=52
Next
Reply
Map
View

Click here to load this message in the networking platform