Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > microsoft.public.scripting.vbscript > #12184

Re: (newbie) how to access radio button in vbs?

From "Mayayana" <mayayana@invalid.nospam>
Newsgroups microsoft.public.scripting.vbscript
Subject Re: (newbie) how to access radio button in vbs?
Date 2019-08-20 21:21 -0400
Organization A noiseless patient Spider
Message-ID <qji6bn$hc8$1@dont-email.me> (permalink)
References <960458245.18367.0.nnrp-11.c2deb746@news.demon.co.uk> <ulcL#YU0$GA.260@cppssbbsa02.microsoft.com>#1/1> <5eab7f34-21c7-4a60-aa36-59b703f87cb8@googlegroups.com>

Show all headers | View raw


"Rachel Phillips" <rmaniacnyc@gmail.com> wrote

| how is this done in script for cscript.exe?

  Did you realize you're posting to a post from 19 years ago?
You should get a real newsreader and stop using Google Groups.
Then you'll see current discussions.

  I'm not clear what you're asking. None of the sample code
is radio buttons. Here's how I usually do it. You typically
don't need a click event because it's an option chosen
before they click a button:

<HTML>
<HEAD>
<TITLE></TITLE>
<SCRIPT LANGUAGE="VBScript">
Sub Op2_onclick()
      If Op1(0).checked = True Then
       MsgBox "first"
      ElseIf Op1(1).checked = True Then
        MsgBox "second"
     Else
       MsgBox "third"
     End If
End Sub
</SCRIPT>
</HEAD>
<BODY BGCOLOR="#FFFFFF" TEXT="#000000">
<INPUT TYPE="radio" ID="Op1" Name="Op1" checked>Radio1
<INPUT TYPE="radio" ID="Op1" Name="Op1">Radio2
<INPUT TYPE="radio" ID="Op1" Name="Op1">Radio3
<BR>
<INPUT TYPE="button" ID="Op2">Press
</BODY></HTML>

Back to microsoft.public.scripting.vbscript | Previous | NextPrevious in thread | Find similar


Thread

Re: (newbie) how to access radio button in vbs? Rachel Phillips <rmaniacnyc@gmail.com> - 2019-08-20 14:41 -0700
  Re: (newbie) how to access radio button in vbs? "Mayayana" <mayayana@invalid.nospam> - 2019-08-20 21:21 -0400

csiph-web