Guest_imported
New member
- Jan 1, 1970
- 0
How do I grab teh value associated with an option in VBscript.....I've tried but it keeps telling me exspected object...
here's the code so far
<!-- VB Script FOr System Builder -->
<script LANGUAGE="vbscript">
<!--
Dim frmMain
Set frmMain = Document.form
'this is the select
Dim selDDcase
Set selDDcase = Document.form.DDCase
'this is teh text box
Dim textTBCase
Set textTBCase = Document.form.TBCase
Dim val1
Dim val2
val1 = selDDcase.Options.SelectedIndex
val2 = textTBCase.text.value
End Sub
Sub DDCase_OnClick()
val2 = val1
End Sub
-->
</script>
here's the code so far
<!-- VB Script FOr System Builder -->
<script LANGUAGE="vbscript">
<!--
Dim frmMain
Set frmMain = Document.form
'this is the select
Dim selDDcase
Set selDDcase = Document.form.DDCase
'this is teh text box
Dim textTBCase
Set textTBCase = Document.form.TBCase
Dim val1
Dim val2
val1 = selDDcase.Options.SelectedIndex
val2 = textTBCase.text.value
End Sub
Sub DDCase_OnClick()
val2 = val1
End Sub
-->
</script>