VBScript -> OCX

Hi! I've made an OCX named TEST. i have included it in my html code like this :

<OBJECT CLASSID="clsid:B83857AE-98BA-4DF3-B41A-41945155F3D3" id=Test>
</OBJECT>

in this OCX conrol, i have a textbox named text1

with a HTML button, i want to change the content of this text box (text1), so i have something like that:

<script language="VBScript">
sub clicktest()
test.text1.text = "abc"
end sub
</script>

and, of course a button like that :

<input type="button" value="test" onClick="clicktest">

But this is not working. it is saying that test.text1.text is not an object.
I tried with text1.text only, with a form using document.TheForm.test.text1.text.. etc. etc... So how can i change de value of this text box?
[839 byte] By [mog] at [2007-11-15 17:37:55]
# 1 Re: VBScript -> OCX
YOu will need to create a Property Let/Get.
In the Property Let/Get,Alter or retrieve the Text1.text. Something like this

public property get HandleTextBox() as Variant
HandleTextBox = Text1.Text
End property

public property let HandleTextBox(byval vNewValue as Variant)
Text1.Text = vNewValue
End property

John G
John G Duffy at 2007-11-10 0:44:01 >