I am trying to invoke a chain of actions after I push a button. When the button is pushed I want to call a function that does something [creates objects] and then another action that does something with all the objects created.
Here is a test cap:
Here I simply create 5 objects and then count them and put the number in a message box to the user. The effect now is that the message box counts 0 object for the first time.
What I want to achieve is to create the objects first and count the objects [do stuff with them] later but as the part of the button clickage.
How do I do that?