--- In [email protected], "entropyreduction" 
<alancampbelllists+ya...@...> wrote:
> 
> --- In [email protected], "Sheri" <sherip99@> wrote:
> > 
> > problem is still Variants. See below. Also, this version locks up Powerpro 
> > debug window. Best test version for .72 was the 12-17 (the version prior to 
> > first "no_guess").
> 
> Okay, try COMplugin0.72_100107.zip in
> http://tech.groups.yahoo.com/group/power-pro/files/0_TEMP_/AlansPluginProvisional/

Have so far only repeated the Excel and InDesign tests I was using before.

The Excel one seems to be doing fine.

The InDesign one still gets a com exception on the previously discussed Search 
method, whenever the ANSI "for" argument (provided from vector) is a series of 
digits than needs to be fed as a Variant (or as a String).

function:  Objects* Search(IN VARIANT for (optional), IN VARIANT wholeWord 
(optional), IN VARIANT
caseSensitive (optional), IN VARIANT replacingWith (optional))

using COMplugin0.72_100107.zip I get (for the values in the first row of the 
vector):

ERROR: com.method: Invoke failed (sys code 80020009: "Exception occurred.")

local r=myselect.Search(chgVec[i,1], wholeword, casesensitive, chgVec[i,2])

The values in the failing vector row are
chgVec[0,1]:123
chgVec[0,2]:abc

Did you see or experiment at all with the following previously posted info? 
From what I gather, the argument data goes into a Variant with VT_VARIANT on it 
and its pointer goes into another as VT_BYREF|VT_VARIANT.

> Another possibly useful site: <http://www.devguy.com/fp/Tips/COM/>

> "Even if a method accepts a VARIANT as opposed to a VARIANT *,
> pointers can be passed indirectly via VT_BYREF|VT_VARIANT.
> VBScript passes [in] VARIANTs in this fashion."

Regards,
Sheri

~Happy New Year~

Reply via email to