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
  1. Home
  2. General Programming
  3. C / C++ / MFC
  4. to enter numeric value into an edit box

to enter numeric value into an edit box

Scheduled Pinned Locked Moved C / C++ / MFC
c++helpdatabaselearning
5 Posts 2 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.
  • E Offline
    E Offline
    Emre Zorlu
    wrote on last edited by
    #1

    :confused:I'm working on a project which is Single Document-MFC. I'm learning database programing vith visual c++ 6.0. I want to enter a numaric value into an EditBox. Then this value should be stored in *.mdb table as long integer. I chose catagory and value type as value/long from class wizard. But I could not write any code for it. When I enter a string,I could not have any problem. I wrote m_aciklamalar.GetWindowText (strAcikla); set.m_aciklama = strAcikla; then store Cstring into *.mdb. please,help me ! emroz

    C 1 Reply Last reply
    0
    • E Emre Zorlu

      :confused:I'm working on a project which is Single Document-MFC. I'm learning database programing vith visual c++ 6.0. I want to enter a numaric value into an EditBox. Then this value should be stored in *.mdb table as long integer. I chose catagory and value type as value/long from class wizard. But I could not write any code for it. When I enter a string,I could not have any problem. I wrote m_aciklamalar.GetWindowText (strAcikla); set.m_aciklama = strAcikla; then store Cstring into *.mdb. please,help me ! emroz

      C Offline
      C Offline
      Cedric Moonen
      wrote on last edited by
      #2

      Go to the properties of the Edit control, select the styles tab and check the Number check box. This should work. The only problem: you can only enter unsigned integer. If you need floats or signed numbers, you have to override the control. If you need that, I already done this, so, if you want I can send you the source files.

      E 1 Reply Last reply
      0
      • C Cedric Moonen

        Go to the properties of the Edit control, select the styles tab and check the Number check box. This should work. The only problem: you can only enter unsigned integer. If you need floats or signed numbers, you have to override the control. If you need that, I already done this, so, if you want I can send you the source files.

        E Offline
        E Offline
        Emre Zorlu
        wrote on last edited by
        #3

        if you send me,I'll be happy emroz

        C 1 Reply Last reply
        0
        • E Emre Zorlu

          if you send me,I'll be happy emroz

          C Offline
          C Offline
          Cedric Moonen
          wrote on last edited by
          #4

          Ok, no problem. Just give me your email adress :) !

          E 1 Reply Last reply
          0
          • C Cedric Moonen

            Ok, no problem. Just give me your email adress :) !

            E Offline
            E Offline
            Emre Zorlu
            wrote on last edited by
            #5

            emroz2003@hotmail.com emroz

            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