DevX Home    Today's Headlines   Articles Archive   Tip Bank   Forums   

+ Reply to Thread
Results 1 to 3 of 3
  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

    >
    >



Bookmarks

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


Top DevX Stories

Easy Web Services with SQL Server 2005 HTTP Endpoints
JavaOne 2005: Java Platform Roadmap Focuses on Ease of Development, Sun Focuses on the "Free" in F.O.S.S.
Wed Yourself to UML with the Power of Associations
Microsoft to Add AJAX Capabilities to ASP.NET
IBM's Cloudscape Versus MySQL


Sponsored Links