Accessing component value

This is the forum for miscellaneous technical/programming questions.

Moderator: 2ffat

Accessing component value

Postby bhanu » Mon Feb 28, 2005 10:20 pm

Hi all,

How can i access edit/memo components create dynamically in another form.

Thanks in advance.
bhanu
 

Postby Damon » Tue Mar 01, 2005 4:42 am

Hi,
If you've assinged a value to the Name property of the dynamically created edit/memo, then you can use the FindComponent() method of the second form; for example Form2->FindComponent("Memo1"); Alternatively, just define a "getter" method of the second form, which returns a direct pointer to the edit/memo.

Good luck,
Damon
User avatar
Damon
BCBJ Editor and Admin
BCBJ Editor and Admin
 
Posts: 285
Joined: Wed May 26, 2004 11:25 pm
Location: Stillwater, OK, USA


Return to Technical

Who is online

Users browsing this forum: Google [Bot] and 16 guests