I have got a dll project which consists of a class module (cClass) and a form (formdll) (Modal)
In class Module I have got a public subroutine:
Public sub graph(x,y,z....)
This subroutine does some basic calculations and populates an X;Y graph on the form.
I invoke this by Calling this subroutine from the server application
As a result the graph is redrawn and everything works fine.
Now my Problem.
The form (formdll) needs to be modal and after I call the subroutine graph the focus is on this form.
In order to redraw the graph in a different scale I would like to use the variables (X,Y,Z...) again but they are out of scope by now.
So in essens I need to be able to recall the subroutine graph(X,Y,Z...) from the form with the same variables as from the server application.
One way would be to make all the different variables public wityhin the class module, but I would like to avoid this.
I hope the problem is understanable?