Optional array parameter to function

OnMyBike

Registered User.
Local time
Today, 15:30
Joined
Dec 4, 2012
Messages
15
Hi

I am passing an array to a function but sometimes the array has not got any elements.

So... How can I either create an empty array that I can determine in the function OR
make the array an optional parameter (I can do that bot) and then test to see if it has been passed to the function? What would the test be?

Can anybody suggest any others ways of doing this?

Thanks in anticipation.
 
Use a Variant array and test if it has been passed with IsMissing().
 

Users who are viewing this thread

Back
Top Bottom