Question: How to display output in textbox?

I wish to display the following screen output from a procedure A(), in a textbox of mathcontainer or any other suitable component.

 

This output to screen listing is generated by print statements in the procedure A().

I have placed the procedure call A() in a textbox and then am using a button component to execute it with the objective of displaying the above output in another component display box; either a textbox or a MathContainer box...  I can see that A() executes, but do not know how to get the result to display in a component box.

Can anyone offer any help?

Please Wait...