Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Wanet Telecoms Ltd on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

How do I check if ParamArray is empty? 1

Status
Not open for further replies.

entaroadun

Programmer
Sep 27, 2002
583
US
I'm using VB6 SP5. How do I check the caller of a function passed nothing into a ParamArray? Is there any special syntax? What is the underlying data type of the ParamArray? I know that the array is passed in byref... does this have any effect?
 
You can use IsMissing()

Private Function Foo(ParamArray Args())
If IsMissing(Args) Then Debug.Print "No Arguments"
End Function
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top