Hi Igor,
Yes, that would be the case if I was instantiating the object programmatically as you cited, and I have done this successfully. However, in this case I am using the < OBJECT > HTML tag to instantiate the ActiveX control so it should already be in existence when "MyFunc" is called.
>Hi Bill,
>
>You may miss statement like
>
>set MyObject = CreateObject("MyAXobj")
>
>HTH, Igor
>
>>I have been trying to test an ActiveX control in a web page instantiated using the OBJECT tag. According to all the documentation I've read, the control should be able to be referenced in script code by the value in the ID attribute. E.g if in the web page I set:
>>
>>< OBJECT ID="MyAXobj" ... < /OBJECT >
>>
>>in a vbscript function in the web page I should be able to:
>>
>>Function MyFunc
>>' Code statements
>> Dim MyProp
>> MyProp = MyAXobj.property
>>' etc.
>>End Function
>>However I am getting the "Object Required: 'MyAXobj'" vbscript error when I attempt this. What am I missing here?
>>
>>Thanks,
>>Bill
William A. Caton III
Software Engineer
MAXIMUS
Atlanta, Ga.