Implementing the same stack across multiple forms - help needed.
Posted 14 October 2012 - 11:34 AM
Hi, my application involves the use of a stack class, the stack is modified by another class by taking input. I wish to use another form to output elements of the same stack. I was wondering if scope was an issue?
InputStack inputStack = new InputStack();
That is the declaration of an instance of the stack within the form that takes input.
Re: Implementing the same stack across multiple forms - help needed.
Posted 14 October 2012 - 12:49 PM
No there is nothing wrong with the class. Im trying to refer to an instance of the class that is declared on the input form from the output form.
I have done a temp work around using text file handling to store values.
This post has been edited by M-rhodes: 14 October 2012 - 12:49 PM