Object doesn't support this property or method 
Author Message
 Object doesn't support this property or method

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



Sun, 31 Aug 2003 07:29:29 GMT  
 Object doesn't support this property or method
"...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.
--

Quote:

> 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



Sun, 31 Aug 2003 09:54:24 GMT  
 Object doesn't support this property or method
Quote:
>> VBScript applet  --  could you define it?

====

How about:  -- "anything that uses less than fifty lines of code" ?  ;-)

Quote:
>> 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


Quote:
> "...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
Quote:
> IDispatch)???

> --
> Michael Harris
> Microsoft.MVP.Scripting
> --

> Please do not email questions - post them to the newsgroup instead.
> --




Quote:
> > 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



Sun, 31 Aug 2003 20:54:59 GMT  
 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



Mon, 01 Sep 2003 00:47:11 GMT  
 
 [ 4 post ] 

 Relevant Pages 

1. Object doesn't support this property or method : 'DTSGlobalVariables(...).Value.Open

2. Object doesn't support this property or method

3. Object doesn't support this property or method

4. Object doesn't support this property or method

5. Object doesn't support this property or method

6. Sample code: Object doesn't support this property or method

7. Object doesn't support this property or method

8. Object doesn't support this property or method

9. ASP Error on Session.Contents : Object doesn't support this property or method

10. Help!- 438- Object doesn't support this property or method

11. Object doesn't support this property or method

12. Object doesn't support this property or method

 

 
Powered by phpBB® Forum Software