Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Question about forms and select

Status
Not open for further replies.

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=&quot;vbscript&quot;>
<!--

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>
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top