Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

variable passing

Status
Not open for further replies.

Guest_imported

New member
Jan 1, 1970
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!
 
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


 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top