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. How I collect data of editbox to variable

How I collect data of editbox to variable

Scheduled Pinned Locked Moved C / C++ / MFC
6 Posts 5 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.
  • Y Offline
    Y Offline
    Yuwraj
    wrote on last edited by
    #1

    How I collect data from editbox to variable declare for it.

    R V T 3 Replies Last reply
    0
    • Y Yuwraj

      How I collect data from editbox to variable declare for it.

      R Offline
      R Offline
      Rajesh R Subramanian
      wrote on last edited by
      #2

      Add a member variable to the edit box by using class wizard (VC++ 6) or right click on the edit box in design mode and click add variable(VC++ .NET). The value of the editbox will be available in this variable. Before you want to fetch the value in the editbox, Call UpdateData(TRUE); Regards, Rajesh R. Subramanian You have an apple and me too. We exchange those and We have an apple each. You have an idea and me too. We exchange those and We have two ideas each. -- modified at 1:36 Friday 6th January, 2006

      Y D 2 Replies Last reply
      0
      • R Rajesh R Subramanian

        Add a member variable to the edit box by using class wizard (VC++ 6) or right click on the edit box in design mode and click add variable(VC++ .NET). The value of the editbox will be available in this variable. Before you want to fetch the value in the editbox, Call UpdateData(TRUE); Regards, Rajesh R. Subramanian You have an apple and me too. We exchange those and We have an apple each. You have an idea and me too. We exchange those and We have two ideas each. -- modified at 1:36 Friday 6th January, 2006

        Y Offline
        Y Offline
        Yuwraj
        wrote on last edited by
        #3

        Thanks Rajesh:laugh:

        1 Reply Last reply
        0
        • Y Yuwraj

          How I collect data from editbox to variable declare for it.

          V Offline
          V Offline
          vikas amin
          wrote on last edited by
          #4

          By Application Wizard add a control variable to the Edit box say m_edit in my case CString temp; m_edit.GetWindowText (temp); thats it u can also add a CString variable and use the DDX to do the work for u by usin on update(TRUE) Vikas Amin Embin Technology Bombay vikas.amin@embin.com

          1 Reply Last reply
          0
          • R Rajesh R Subramanian

            Add a member variable to the edit box by using class wizard (VC++ 6) or right click on the edit box in design mode and click add variable(VC++ .NET). The value of the editbox will be available in this variable. Before you want to fetch the value in the editbox, Call UpdateData(TRUE); Regards, Rajesh R. Subramanian You have an apple and me too. We exchange those and We have an apple each. You have an idea and me too. We exchange those and We have two ideas each. -- modified at 1:36 Friday 6th January, 2006

            D Offline
            D Offline
            David Crow
            wrote on last edited by
            #5

            But only if the edit control's variable is a CString object. If CEdit is used instead, UpdateData() is not necessary.


            "The words of God are not like the oak leaf which dies and falls to the earth, but like the pine tree which stays green forever." - Native American Proverb

            1 Reply Last reply
            0
            • Y Yuwraj

              How I collect data from editbox to variable declare for it.

              T Offline
              T Offline
              ThatsAlok
              wrote on last edited by
              #6

              Yuwraj wrote:

              How I collect data from editbox to variable declare for it.

              One More GetDlgItemText

              "Opinions are neither right nor wrong. I cannot change your opinion. I can, however, change what influences your opinion." - David Crow

              cheers, Alok Gupta VC Forum Q&A :- I/ IV

              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