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
Ryan AlfordPosted Jul 11, 2008, 1:12 PM
Satish KathiPosted Jul 11, 2008, 12:39 PM
Martin StephensonPosted Jul 11, 2008, 10:42 AM
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.
EmiliePosted Jun 26, 2008, 12:06 AM
Scott LyslePosted Jun 25, 2008, 10:52 PM