
Object doesn't support this property or method
You may want to check out this article to see if it applies. I'm not a VC++ person (which is what I
assume you used to implement you component)...
Building COM Components That Take Full Advantage of Visual Basic and Scripting
http://msdn.microsoft.com/library/techart/msdn_vbscriptcom.htm#vbscri...
--
Michael Harris
Microsoft.MVP.Scripting
--
Please do not email questions - post them to the newsgroup instead.
--
Quote:
> >> VBScript applet -- could you define it?
> ====
> How about: -- "anything that uses less than fifty lines of code" ? ;-)
> >> Does ObjectB.Property3 expose an object that supports IDispatch ???
> ====
> The way I implemented the ActiveX dll, both "ObjectA" and "ObjectB" are
> actually two COM interfaces on the same (code) object, and this object also
> supports the IDispatch interface.
> Andrew F-G
> > "...VBScript applet..."
> > Now this is a new term I've never seen/heard/read before - could you
> define it?
> > In general, the object.property/method syntax in VBScript is the same as
> VB.
> > Does ObjectB.Property3 expose an object that supports IDispatch (script
> clients only support
> > IDispatch)???
> > --
> > Michael Harris
> > Microsoft.MVP.Scripting
> > --
> > Please do not email questions - post them to the newsgroup instead.
> > --
> > > There are two other messages on this topic in the NG, but unfortunately
> > > neither of them answers my problem...
> > > I have an ActiveX OCX which exports: a) straight strings / number
> properties
> > > and b) properties that are pointers to other objects.
> > > IMyObjectA
> > > Property1 : widestring
> > > ...
> > > end
> > > IMyObjectB
> > > Property2 : widestring
> > > Property3 : IMyObjectA
> > > end
> > > In C++, Pascal and VBasic, you can use (say) the following construction
> > > without any problems:
> > > MyObjectB.Property2 = MyObjectB.Property3.Property1
> > > However a VBScript applet in an HTML web page causes the error "Object
> > > doesn't support this property or method". Ironically if I create the
> web
> > > page with Visual Studio, then the "auto code writer" actually prompts me
> to
> > > write this construct, so obviously "auto code" does support the
> property!.
> > > Any advice how to solve this would be much appreciated...
> > > Andrew F-G