Optional params and registration

54 views
Skip to first unread message

Onn

unread,
Jun 8, 2021, 1:12:34 AM6/8/21
to Excel-DNA
Hi all

I am looking to add optional params with default values to my UDF's.
I searched on google and saw some older discussions and also see on git the Registration Helper. 

I think the registration helper is the most up to date and current approach to handle optional/default params? Can you confirm that? And if "yes", is there an example that you can point me to?

Best regards and thanks in advance,
Onn

Govert van Drimmelen

unread,
Jun 8, 2021, 3:57:30 AM6/8/21
to Excel-DNA
--------------------------------------------------
Excel-DNA is now registered on GitHub Sponsors.
You can add Excel-DNA support with easy billing through a corporate GitHub account.
--------------------------------------------------

Hi Onn,

You are correct - the Registration extension is the right approach to supporting optional parameters.

There is a sample project that includes various such conversions as part of the Registration repository:
It's a bit all-in-one as a sample so maybe not as simple as could be, but please ask if you get stuck.

-Govert
Reply all
Reply to author
Forward
0 new messages