How to format Function Documentation
taylorh140 opened this issue · 7 comments
After registering a function some times the text for the function arguments is not pretty:
I used the following information for Registry:
@register(ArgumentText("Find A subset from the list which sums to specified value"w),
HelpTopic("Find A subset from the list which sums to specified value"w),
FunctionHelp("Find A subset from the list which sums to specified value"w),
ArgumentHelp(["List, contains list where subsets reside"w,"TargetValue, Goal Value for subset"w,"MaxListSize, Maximum number of subset items allowed (this makes a very large difference in calcualtion time)"w]))
I suppose what I need here is documentation on what goes where and how to format it.
Thanks!
Thanks for filing the issue. How did you get the dialogs about function arguments in Excel?
It's a known bug in Excel.
https://docs.microsoft.com/en-us/office/client-developer/excel/known-issues-in-excel-xll-development
Working around the Excel bug is simple in the wrapper. It seems the ArgumentsText thing is actually a semicolon-separated list of argument names.
HelpTopic also has a specific format involving a !. I'll add some code comments in a PR at least.
Closed by #81
leaving this as a note to self but it might be a good idea to hard-code the install path of the excel sdk for linking instead of having to hunt down the lib
(the stupid eula prohibits redistribution, but linking to and having the path known to the default build script can be the next best thing for a smooth "just works" experience)