How I collect data of editbox to variable
-
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 -
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 -
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
-
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, 2006But only if the edit control's variable is a
CString
object. IfCEdit
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
-
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