comPlugin0.72_100113.zip http://tech.groups.yahoo.com/group/power-pro/files/0_TEMP_/AlansPluginProvisional/
--- In [email protected], "Sheri" <sheri...@...> wrote: > I'm getting 0 for false and -1 for true for BOOL returns. Is that the issue > you mentioned previous re Excel? Can you convert it before returning it? > Boolean parameters are already using 0 and 1 (at least the optional VARIANT > ones like igoreUpperCase in the following script). Okay, any non-zero value going into a com arg known to be VT_BOOL either by FUNCDESC or typespec is turned into -1, and any non-zero value coming out of a com result known to be VT_BOOL converted to 1 > Also, if there is a typespec in effect, and you get an invoke with one or > more parameters (but fewer than the expected number per the typespec) maybe > you could give an error message such as "Invoke parameter count mismatch" > instead of "Programing error, bozo makeVarParam: m_vtParamType should be > VT_EMPTY" :) Fixed Modified version of your below script included in zip (sheriSpellingExcel.powerpro) get_object_description takes third arg, name of function, case insensitve, in which case you get all matches but no more can now omit an argument known by typespec to be optional (you have to either include all optional arguments, or omit all) An ideA: instead of using typespec for omitted optionals: Have configi ini key SkippedArgument=~~ (or whatever) Overridden by com.setSkippedArgument("~~")(or whatever) "~~" (or whatever) only of course valid for parameter known to be optional Any suggestions for very unlikely string never gonna be legal as a genuine optional argument value? Could I suppose be character outside norma ansi range e.g. \xFE ...(snip).... > win.debug("=========== Test 3 \x22\x22 is skipped param ==============") > com.set_arg_types("s t b ",1) > win.debug(?Z""Z++" is skipped parameter") > TestSpellFunction(appref) > com.unload > quit > Function TestSpellFunction(AppRef) > Exec.OnError("none") > win.debug(?ZAppRef.CheckSpelling("HAX","",1)Z++" returns "++ ;;+ ...(snip)....
