May 23, 2002 #1 Guest_imported New member Joined Jan 1, 1970 Messages 0 how do i pass the value of an edit box from a dialog box to another edit box in another dialog box? please help! thanks!
how do i pass the value of an edit box from a dialog box to another edit box in another dialog box? please help! thanks!
May 24, 2002 #2 fheyn Programmer Joined Mar 22, 2001 Messages 198 Location DE It's like this : in dlg1 you have ebx1 with membervariable m_ebx1; from dlg1 you call dlg2 with CDialog dlg2 (which holds ebx2 with membervariable m_ebx2) dlg2.DoModal(); before calling DoModal, you say : dlg2.m_ebx2 = m_ebx1 if you want to pass from dlg2 to dlg1 it's m_ebx1 = dlg2.m_ebx2 after calling DoModal(). Hope this helps Upvote 0 Downvote
It's like this : in dlg1 you have ebx1 with membervariable m_ebx1; from dlg1 you call dlg2 with CDialog dlg2 (which holds ebx2 with membervariable m_ebx2) dlg2.DoModal(); before calling DoModal, you say : dlg2.m_ebx2 = m_ebx1 if you want to pass from dlg2 to dlg1 it's m_ebx1 = dlg2.m_ebx2 after calling DoModal(). Hope this helps