Results 1 to 6 of 6

Thread: [2005] radio buttons relying on 10-20 other raido buttons to get info

  1. #1

    Thread Starter
    Hyperactive Member
    Join Date
    Feb 2007
    Location
    indiana
    Posts
    341

    [2005] radio buttons relying on 10-20 other raido buttons to get info

    Hello,
    I have about 30 radio buttons on my form (see image). i need to check if radiobutton1.checked=true then check for what radio button is checked in groupbox 2 then check for what radio button is checked in groupbox 3. then i need to react accordingly. i can do this on my own with about 30 if...thens nested inside 10 if...thens for the first group box. what i am wondering is: is there any fancy way to do this without all that coding. like i don't know maybe a loop or something. i am looking for a way to do this with as little code as possible but i can do all those if...thens if i have to. thank you all for your help
    Attached Images Attached Images  

  2. #2
    eXtreme Programmer .paul.'s Avatar
    Join Date
    May 2007
    Location
    Chelmsford UK
    Posts
    26,415

    Re: [2005] radio buttons relying on 10-20 other raido buttons to get info

    show us your code, and we might be able to help simplify it

    edit: p.s. your website doesn't work

  3. #3
    Powered By Medtronic dbasnett's Avatar
    Join Date
    Dec 2007
    Location
    Jefferson City, MO
    Posts
    9,897

    Re: [2005] radio buttons relying on 10-20 other raido buttons to get info

    It looks like you have 4 groups. Can there be more than one selected in each group? If the answer is only one then a combobox might be a better way to do this.
    My First Computer -- Documentation Link (RT?M) -- Using the Debugger -- Prime Number Sieve
    Counting Bits -- Subnet Calculator -- UI Guidelines -- >> SerialPort Answer <<

    "Those who use Application.DoEvents have no idea what it does and those who know what it does never use it." John Wein

  4. #4
    eXtreme Programmer .paul.'s Avatar
    Join Date
    May 2007
    Location
    Chelmsford UK
    Posts
    26,415

    Re: [2005] radio buttons relying on 10-20 other raido buttons to get info

    radiobuttons are specifically meant to be used for 1 choice from a selection of options

  5. #5
    Powered By Medtronic dbasnett's Avatar
    Join Date
    Dec 2007
    Location
    Jefferson City, MO
    Posts
    9,897

    Re: [2005] radio buttons relying on 10-20 other raido buttons to get info

    Quote Originally Posted by .paul.
    radiobuttons are specifically meant to be used for 1 choice from a selection of options
    Only if they are in a group.

    That must be why I see them used to pick the State I live in.
    My First Computer -- Documentation Link (RT?M) -- Using the Debugger -- Prime Number Sieve
    Counting Bits -- Subnet Calculator -- UI Guidelines -- >> SerialPort Answer <<

    "Those who use Application.DoEvents have no idea what it does and those who know what it does never use it." John Wein

  6. #6

    Thread Starter
    Hyperactive Member
    Join Date
    Feb 2007
    Location
    indiana
    Posts
    341

    Re: [2005] radio buttons relying on 10-20 other raido buttons to get info

    Quote Originally Posted by .paul.
    show us your code, and we might be able to help simplify it

    edit: p.s. your website doesn't work
    i know that the website inst up and running. i think i had a power outage and my computer shut down. (it inst a dedicated server which i run all the time i would maybe run it more often if i could get a guess at how many people were going there. but now i divert so bock on topic)

    well i haven't started working on my code yet because i was hoping for a response from here that would save me some time. But i didnt get on so i will just type up my code and then let you all see it. If my guess is right then there will be over 1000 lines of code (not to much but enough to make people not want to read it) i will post my code when i am done.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width