Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
CODE PROJECT For Those Who Code
  • Home
  • Articles
  • FAQ
Community
  1. Home
  2. General Programming
  3. C / C++ / MFC
  4. Edit Box Variables

Edit Box Variables

Scheduled Pinned Locked Moved C / C++ / MFC
helpc++tutorialquestion
19 Posts 4 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • R Rick York

    You might want to have a look at this little article. It is a set of classes built to take numeric input from edit boxes and it handles a lot of those messy details for you. There are facilities to use sliders also but you don't have to. I hope this helps.

    C Offline
    C Offline
    Cam
    wrote on last edited by
    #9

    But it's so simple, really. And the point is to learn. Once he gets it down he'll be pumping these things out in no time, and wondering what was slowin' him down before. ~Cam Desautels (BinaryUprising.com)

    L 1 Reply Last reply
    0
    • C Cam

      But it's so simple, really. And the point is to learn. Once he gets it down he'll be pumping these things out in no time, and wondering what was slowin' him down before. ~Cam Desautels (BinaryUprising.com)

      L Offline
      L Offline
      Lost User
      wrote on last edited by
      #10

      You guys are awesome, Thanks for your help!!:-D

      C 1 Reply Last reply
      0
      • L Lost User

        You guys are awesome, Thanks for your help!!:-D

        C Offline
        C Offline
        Cam
        wrote on last edited by
        #11

        Did you get it working??? ~Cam Desautels (BinaryUprising.com)

        L 1 Reply Last reply
        0
        • L Lost User

          I am taking a little course in C++ and my instructor tols me that my problem has to do with the way I am declaring my variables. I used the class wizard and made the variables as catagory Value, and Variable type float. I made sure my Updatedata(); commands were right, and I still get these errors. Since we haven't covered the atoi/atof topics yet I assume the problem is how the variables or functions are declared. This is pretty stressful, considering I'd like to get this right so I can be where you are and help someone later on. Is there anything else I might be overlooking? I really appreciate your assistance. Thanks.:confused:

          C Offline
          C Offline
          Christian Graus
          wrote on last edited by
          #12

          If you made the variables of type float, then you need to make sure that only numbers are being entered into the edit boxes. Sadly, if you click the option in the edit box properties to make the value a number, you will only get int's, the decimal point will also be supressed. You really should consider posting some code when asking for help. I suspect if I saw the code I'd probably know what you were doing wrong. Christian After all, there's nothing wrong with an elite as long as I'm allowed to be part of it!! - Mike Burston Oct 23, 2001

          Sonork ID 100.10002:MeanManOz

          I live in Bob's HungOut now

          L 1 Reply Last reply
          0
          • C Cam

            Did you get it working??? ~Cam Desautels (BinaryUprising.com)

            L Offline
            L Offline
            Lost User
            wrote on last edited by
            #13

            Cam, I'm sorry I didn't say. Yes, I got it owkring. Thanks a lot for your help! It's impressive to see that there are people out there that seem to REALLY care. Your code and that srticle that Rich sent me to set me right. THANKS! By the way, GREAT web site!

            L C 3 Replies Last reply
            0
            • L Lost User

              I am taking a little course in C++ and my instructor tols me that my problem has to do with the way I am declaring my variables. I used the class wizard and made the variables as catagory Value, and Variable type float. I made sure my Updatedata(); commands were right, and I still get these errors. Since we haven't covered the atoi/atof topics yet I assume the problem is how the variables or functions are declared. This is pretty stressful, considering I'd like to get this right so I can be where you are and help someone later on. Is there anything else I might be overlooking? I really appreciate your assistance. Thanks.:confused:

              C Offline
              C Offline
              Christian Graus
              wrote on last edited by
              #14

              If you made the variables of type float, then you need to make sure that only numbers are being entered into the edit boxes. Sadly, if you click the option in the edit box properties to make the value a number, you will only get int's, the decimal point will also be supressed. However, if the values are ALL set to be floats, there is no char to float conversion happening at ALL, so I doubt you've got that bit right, or if you have, the problem is elsewhere and you should be posting the code where it crashes. You really should consider posting some code when asking for help. I suspect if I saw the code I'd probably know what you were doing wrong. Christian After all, there's nothing wrong with an elite as long as I'm allowed to be part of it!! - Mike Burston Oct 23, 2001

              Sonork ID 100.10002:MeanManOz

              I live in Bob's HungOut now

              C 1 Reply Last reply
              0
              • L Lost User

                Cam, I'm sorry I didn't say. Yes, I got it owkring. Thanks a lot for your help! It's impressive to see that there are people out there that seem to REALLY care. Your code and that srticle that Rich sent me to set me right. THANKS! By the way, GREAT web site!

                L Offline
                L Offline
                Lost User
                wrote on last edited by
                #15

                Sorry about the typos, I'm pretty tired now.

                1 Reply Last reply
                0
                • L Lost User

                  Cam, I'm sorry I didn't say. Yes, I got it owkring. Thanks a lot for your help! It's impressive to see that there are people out there that seem to REALLY care. Your code and that srticle that Rich sent me to set me right. THANKS! By the way, GREAT web site!

                  L Offline
                  L Offline
                  Lost User
                  wrote on last edited by
                  #16

                  Sorry about the typos, I'm really tired now. Good night

                  1 Reply Last reply
                  0
                  • C Christian Graus

                    If you made the variables of type float, then you need to make sure that only numbers are being entered into the edit boxes. Sadly, if you click the option in the edit box properties to make the value a number, you will only get int's, the decimal point will also be supressed. You really should consider posting some code when asking for help. I suspect if I saw the code I'd probably know what you were doing wrong. Christian After all, there's nothing wrong with an elite as long as I'm allowed to be part of it!! - Mike Burston Oct 23, 2001

                    Sonork ID 100.10002:MeanManOz

                    I live in Bob's HungOut now

                    L Offline
                    L Offline
                    Lost User
                    wrote on last edited by
                    #17

                    Christian, Thanks an aweful lot for helping me. I REALLY appreciate it.

                    1 Reply Last reply
                    0
                    • C Christian Graus

                      If you made the variables of type float, then you need to make sure that only numbers are being entered into the edit boxes. Sadly, if you click the option in the edit box properties to make the value a number, you will only get int's, the decimal point will also be supressed. However, if the values are ALL set to be floats, there is no char to float conversion happening at ALL, so I doubt you've got that bit right, or if you have, the problem is elsewhere and you should be posting the code where it crashes. You really should consider posting some code when asking for help. I suspect if I saw the code I'd probably know what you were doing wrong. Christian After all, there's nothing wrong with an elite as long as I'm allowed to be part of it!! - Mike Burston Oct 23, 2001

                      Sonork ID 100.10002:MeanManOz

                      I live in Bob's HungOut now

                      C Offline
                      C Offline
                      Cam
                      wrote on last edited by
                      #18

                      True, true, sorry about that...int math was simpler... ~Cam Desautels (BinaryUprising.com)

                      1 Reply Last reply
                      0
                      • L Lost User

                        Cam, I'm sorry I didn't say. Yes, I got it owkring. Thanks a lot for your help! It's impressive to see that there are people out there that seem to REALLY care. Your code and that srticle that Rich sent me to set me right. THANKS! By the way, GREAT web site!

                        C Offline
                        C Offline
                        Cam
                        wrote on last edited by
                        #19

                        Ok, very cool, very cool...no problem about the help, I'm a struggling C++ programmer myself (yeah, but what the heck, I'm 17, it'll come...), and if I help others with what I can, maybe someone can help me when the time comes. Thanks a lot about my site, I have a lot of fun with webdev. Did you see there's a little text box on the right-hand side of the homepage where you can post comments (hint, hint). LOL, anyway, the best of luck to you, I'm glad I could help. ~Cam Desautels (BinaryUprising.com)

                        1 Reply Last reply
                        0
                        Reply
                        • Reply as topic
                        Log in to reply
                        • Oldest to Newest
                        • Newest to Oldest
                        • Most Votes


                        • Login

                        • Don't have an account? Register

                        • Login or register to search.
                        • First post
                          Last post
                        0
                        • Categories
                        • Recent
                        • Tags
                        • Popular
                        • World
                        • Users
                        • Groups