Results 1 to 5 of 5

Thread: Form Help

  1. #1
    Join Date
    Oct 2007
    Location
    http://ushort.us/oqmd65
    Posts
    2,605
    Mentioned
    0 Post(s)
    Quoted
    1 Post(s)

    Default Form Help

    I need help. Whats an if(myVar is checked) [for checkboxes] then command for forms?

    And how do you make it you can only check 1 thing in some areas and alot in other areas
    I do visit every 2-6 months

  2. #2
    Join Date
    Aug 2007
    Posts
    429
    Mentioned
    0 Post(s)
    Quoted
    2 Post(s)

    Default

    SCAR Code:
    if (CheckBox.Checked = True) then

    And what do you mean on the second part?

  3. #3
    Join Date
    Apr 2007
    Posts
    3,152
    Mentioned
    3 Post(s)
    Quoted
    1 Post(s)

    Default

    on the second part you either make the checkboxes radio buttons for the ones that you want only 1 or you make a procedure where it makes the checked one unchecked when a new 1 is checked.

    also i think you could use
    SCAR Code:
    if checkbox.state = cbchecked then
    but if checked = true is easier

    EDIT:
    you make a procedure where it makes the checked one unchecked when a new 1 is checked.
    kinda confusing but make an onclick procedure for all the checkboxes, then have it reset all the checkboxes to unchecked and except for the one that was checked. or a timer for if one.check= true then
    reset all others
    SCAR Tutorials: The Form Tutorial | Types, Arrays, and Classes
    Programming Projects: NotePad | Tetris | Chess


  4. #4
    Join Date
    May 2007
    Location
    baltimore, md
    Posts
    836
    Mentioned
    0 Post(s)
    Quoted
    8 Post(s)

    Default

    you dont even have to have = true just
    SCAR Code:
    if Checkbox1.checked then

    edit: Use radio buttons they automatically uncheck eachother when you click on one of them.

  5. #5
    Join Date
    Oct 2007
    Location
    http://ushort.us/oqmd65
    Posts
    2,605
    Mentioned
    0 Post(s)
    Quoted
    1 Post(s)

    Default

    Quote Originally Posted by jhildy View Post
    you dont even have to have = true just
    SCAR Code:
    if Checkbox1.checked then

    edit: Use radio buttons they automatically uncheck eachother when you click on one of them.
    Thanks you answered both parts. Even if you didn't no it. I use the radio buttons for the parts that can only have 1 selected and boxes for the ones that can have many clicks. Thanks again
    I do visit every 2-6 months

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Posting Permissions

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