Hi there,
My application has an option in the menu that needs to put the text of a textbox into a file.
Because in fact there is much more to my application, I wanted to isolate the event calls from the actual handlings. To do that, my event on my form class calls a method that lives in a different class (named Processing). How can I grab the text of my form class when I am in my Processing class? Should I pass it as an argument? Nah... How about some kind of constructor, or other class...?
How do I do this?
Thanks,
Emmi
Loading

Scott LysleRank #49 · 31K reputationPosted Jun 25, 2008, 6:52 PM EDT
Emilie4 reputationPosted Jun 25, 2008, 8:06 PM EDT
Martin Stephenson9 reputationPosted Jul 11, 2008, 6:42 AM EDT
Could you create an interface in the form class with a 'GetParameters' method and call back to the form class via the interface method from the processing class ?
I delphi we commonly use interfaces implemented in the form class, pass a reference to the interface in the constructor of other classes then call ExtlIntf.method from the other classes.
Satish KathiRank #8,369 · 223 reputationPosted Jul 11, 2008, 8:39 AM EDT
Ryan AlfordRank #1,411 · 1.2K reputationPosted Jul 11, 2008, 9:12 AM EDT