Results 1 to 5 of 5

Thread: how to use checkboxes in forms?

  1. #1
    Join Date
    Aug 2007
    Posts
    282
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default how to use checkboxes in forms?

    i looked in all the form tuts i could find and none of them explain it..

    if someone could i would apreciate it.. like how do you make it return true if it is checked?

  2. #2
    Join Date
    Apr 2007
    Location
    Texas
    Posts
    1,668
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    Quote Originally Posted by dvdcrayola View Post
    i looked in all the form tuts i could find and none of them explain it..

    if someone could i would apreciate it.. like how do you make it return true if it is checked?
    every object that use in a form have certian atributes...

    like button1.width

    you can set and get this variable through the "."


    so to know if it is check or not, you can do something like

    SCAR Code:
    IF (MyCheckBox1.Checked) then

    because a .checked value is obv a boolean
    [IMG]http://farm3.static.flickr.com/2120/2052732965_348f3629d0_o.jpg[/IMG]

  3. #3
    Join Date
    Aug 2007
    Posts
    282
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    so, .checked will automatically be true if its checked? or do i have to add somthing to make it do that?

  4. #4
    Join Date
    Apr 2007
    Location
    Texas
    Posts
    1,668
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    nope, no extra stuff. and the underlying eventa halders and such have already been handled for you

    i thnk you can even do
    SCAR Code:
    mycheckbox.checked:=TRUE;
    and that should work as well.
    [IMG]http://farm3.static.flickr.com/2120/2052732965_348f3629d0_o.jpg[/IMG]

  5. #5
    Join Date
    Aug 2007
    Posts
    282
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    ok thanks tons






    OK new question, how about combo boxes? what do you use to see what option the user has selected?

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. Forms
    By marre in forum OSR Help
    Replies: 2
    Last Post: 12-19-2007, 07:53 PM
  2. Forms!
    By Santa_Clause in forum OSR Help
    Replies: 5
    Last Post: 04-05-2007, 05:45 AM
  3. Need help with forms!
    By Da Der Der in forum OSR Help
    Replies: 2
    Last Post: 01-14-2007, 07:13 PM

Posting Permissions

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