--- In [email protected], "Sheri" <sheri...@...> wrote: > > Oh well. Skipping the dictionary parameter for > XLApp.CheckSpelling still uses and sets the dictionary to empty > string instead of using and retaining the previously existing > default. (too bad).
If this version was trying to apply a default value, maybe we could try it again without that. > > > > > Finally figured out how to get at least some extra error info > > with IDispatch::Invoke fails. objApp.Help(4) in word now gives > > mch same error as vbs. > > Great! Tried it saw that, then tried in my InDesign Search test. Very > interesting result! > > The error reported is not for the digits instead of string on > Parameter #1 (For), but for string "0" instead of digit/boolean 0 > on Parameter #2 (WholeWord). But I only get the error where > chgVec[i,1] (Parameter #1) is digits instead of string. The other > invokes don't mind the value they are receiving for Parameter #2 > (which is unchanged; however I suppose the guesser is sending > zero, not "0" for those occurrences). > > Error 770d: C:\Program Files\Adobe\Adobe InDesign > CS2\InDesign.exe: Invalid value for parameter 'WholeWord' of > event 'Search'. Expected Boolean, but received "0". > > local r=myselect.Search(chgVec[i,1], wholeword, casesensitive, > chgVec[i,2]) > > All the Search method's in parameters are Optional VARIANTs. > Possibly _ALL_ VARIANT arguments should be transmitted (similar to above) as pointers using VT_VARIANT|BYREF.
