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

This is a discussion on Add a Value to Ceckbox and add them all ... within the C++ Programming forums, part of the General Programming Boards category; German: Hallo, ich bin neu hier und habe direkt eine wichtige Frage an die Community, ich habe ca. 30 Checkboxen ...

  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 wrongness Salem's Avatar
    Join Date
    Aug 2001
    Location
    The edge of the known universe
    Posts
    32,668
    I've already moved your previous thread to the windows forum.
    Checkbox wert zuweisen & Zusammenrechnen [Checkbox value to assign & tallying]

    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.
    I support http://www.ukip.org/ as the first necessary step to a free Europe.

Popular pages Recent additions subscribe to a feed

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21