Access grouped optionbuttons by index


DevX Home    Today's Headlines   Articles Archive   Tip Bank   Forums   

Results 1 to 3 of 3

Thread: Access grouped optionbuttons by index

  1. #1
    Jürgen Schoch Guest

    Access grouped optionbuttons by index


    Hi,
    I have question concerning some basic programming techniques:
    In VB4 it was possible to label optionsbuttons, which belong to the same
    group or frame, with the same name and then access these grouped optionsbuttons
    by optionbuttonname(index).
    So it was possible to avoid writing many IF statements.
    This is not possible anymore, at least I get an error when assigning the
    same name to two optionbuttons.

    I want to use this technique in VBA for Powerpoint which is based on VB6,
    I think.
    Is there a similar possibility in VB6/VBA?

    Thanks

    Jürgen Schoch

  2. #2
    Douglas J. Steele Guest

    Re: Access grouped optionbuttons by index

    Not 100% certain what the equivalent terminology is in Powerpoint, but in
    Access you'd name your buttons optButton1, optButton2 and so on. Then you
    can refer to them as Me.Controls("optButton" & intLoop)

    --
    Doug Steele, Microsoft Access MVP
    http://I.Am/DougSteele


    "Jürgen Schoch" <schoch@gsf.de> wrote in message
    news:3dda1e08$1@tnews.web.devx.com...
    >
    > Hi,
    > I have question concerning some basic programming techniques:
    > In VB4 it was possible to label optionsbuttons, which belong to the same
    > group or frame, with the same name and then access these grouped

    optionsbuttons
    > by optionbuttonname(index).
    > So it was possible to avoid writing many IF statements.
    > This is not possible anymore, at least I get an error when assigning the
    > same name to two optionbuttons.
    >
    > I want to use this technique in VBA for Powerpoint which is based on VB6,
    > I think.
    > Is there a similar possibility in VB6/VBA?
    >
    > Thanks
    >
    > Jürgen Schoch




  3. #3
    Jürgen Schoch Guest

    Re: Access grouped optionbuttons by index


    In Powerpoint 2000 it works exactly as you wrote.

    Thanks a lot for your help

    Jürgen


    "Douglas J. Steele" <djsteele@canada.com> wrote:
    >Not 100% certain what the equivalent terminology is in Powerpoint, but in
    >Access you'd name your buttons optButton1, optButton2 and so on. Then you
    >can refer to them as Me.Controls("optButton" & intLoop)
    >
    >--
    >Doug Steele, Microsoft Access MVP
    >http://I.Am/DougSteele
    >
    >
    >"Jürgen Schoch" <schoch@gsf.de> wrote in message
    >news:3dda1e08$1@tnews.web.devx.com...
    >>
    >> Hi,
    >> I have question concerning some basic programming techniques:
    >> In VB4 it was possible to label optionsbuttons, which belong to the same
    >> group or frame, with the same name and then access these grouped

    >optionsbuttons
    >> by optionbuttonname(index).
    >> So it was possible to avoid writing many IF statements.
    >> This is not possible anymore, at least I get an error when assigning the
    >> same name to two optionbuttons.
    >>
    >> I want to use this technique in VBA for Powerpoint which is based on VB6,
    >> I think.
    >> Is there a similar possibility in VB6/VBA?
    >>
    >> Thanks
    >>
    >> Jürgen Schoch

    >
    >



Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
HTML5 Development Center
 
 
FAQ
Latest Articles
Java
.NET
XML
Database
Enterprise
Questions? Contact us.
C++
Web Development
Wireless
Latest Tips
Open Source


   Development Centers

   -- Android Development Center
   -- Cloud Development Project Center
   -- HTML5 Development Center
   -- Windows Mobile Development Center