Thread: Add a Value to Ceckbox and add them all ...

  1. #1
    Registered User
    Join Date
    Sep 2012
    Posts
    3

    Add a Value to Ceckbox and add them all ...

    German:
    Hallo,
    ich bin neu hier und habe direkt eine wichtige Frage an die Community, ich habe ca. 30 Checkboxen und möchte jeder checkbox einen wert zuteilen, z.B.

    Checkbox1 = 20
    Checkbox2 = 34
    Checkbox3 = 4423

    Wenn ich dann am ende auf einen Button klicke, soll er alle werte, die den checkboxen gegeben wurden zusammenrechnen (NATÜRLICH NUR DIE AKTIVIERTEN)

    Wäre über eine hilfe wirklich sehr froh ! Danke !

    English:


    Hello,
    I'm new here and directly, an important question to the community, I have about 30 checkboxes and each checkbox one would have to assign value eg

    Checkbox1 = 20
    Checkbox2 = 34
    CheckBox3 = 4423

    If I then click on a button at the end, it should all values ​​that were given the checkboxes add up (ONLY THE NATURAL CAPITAL)

    Would really help a very happy! Thank you!

  2. #2
    and the hat of int overfl Salem's Avatar
    Join Date
    Aug 2001
    Location
    The edge of the known universe
    Posts
    39,659
    I've already moved your previous thread to the windows forum.
    http://cboard.cprogramming.com/windo...llying%5D.html

    Standard C++ knows nothing of "checkboxes", so you must be dealing with some kind of GUI specific code.
    If that isn't Win32, then you need to say so (in your other thread).

    Closed.
    If you dance barefoot on the broken glass of undefined behaviour, you've got to expect the occasional cut.
    If at first you don't succeed, try writing your phone number on the exam paper.

Popular pages Recent additions subscribe to a feed