borderAndreaVB free resources for Visual Basic developersborder

borderAndreaVB Visual Basic and VB.NET source code resources - Copyright © 1999-2007 Andrea Tincaniborder

AndreaVB | Forum | News | Downloads | Register | Help | Member List | Statistics | Search | PM | Profile

Print This Topic
Previous Topic (MSChart 2nd Y axis)Next Topic (Null value in MSChart) New Topic New Poll Post Reply
AndreaVB Forum : VB General : Which optional variables were called from a sub? Solved Topic
Poster Message
misterxed
Level: VB Lord


Registered: 12-06-2005
Posts: 151

icon Which optional variables were called from a sub?

I have made a procedure in a module like this:

Public Sub UpdateList(FileName As String, lstHolder As ListView, Data1 As Variant, Optional Data2 As Variant, Optional Data3 As Variant, Optional Data4 As Variant, Optional Data5 As Variant, Optional Data6 As Variant)

Wherever this sub is called from, it must contain atleast DATA1. I want to know in my module, as to which optional data was also requested by the user...

Eg user requested: Updatelist(MyFileName, MyListView, Data1,Data2,Data3)

How do i get to know in my module that the user did NOT request Data4, Data5 and Data6  

Regards

____________________________
lOsT...

13-07-2007 at 04:54 AM
View Profile Send Email to User Show All Posts | Quote Reply
stickleprojects
Level: Moderator


Registered: 09-09-2002
Posts: 891
icon Re: Which optional variables were called from a sub?

Hi
Give your optional variables a default value.
I've found that the function "IsMissing" is unreliable, so give a default value of "null" or something.
Kieron


____________________________
Build it better, faster, quicker, easier.. then fix it (non-offical MS mission statement)

13-07-2007 at 01:44 PM
View Profile Send Email to User Show All Posts | Quote Reply
AndreaVB Forum : VB General : Which optional variables were called from a sub? Solved Topic
Previous Topic (MSChart 2nd Y axis)Next Topic (Null value in MSChart) New Topic New Poll Post Reply
Surf To:


Not Logged In? Username: Password: Lost your password?
Partners: Download Actual Software | Free Software Download
borderAndreaVB free resources for Visual Basic developersborder

borderAndreaVB Visual Basic and VB.NET source code resources - Copyright © 1999-2007 Andrea Tincaniborder