Let say I have defined a class myself, called "Test". Then if I click on a button called "BOK", it will trigger the functions of the instances of Test to have some events to occur.
To have the functions working when I click the button, I need to create the instaces of Test first, right ?
Where should I place the code like "Test A" to create the instances ?
I cannot put under the OnBOK() right ? If not the program will keep creating the instances of Test every time I click the button.
So where should I create the instances to make sure OnBOK() can access the instances and execute the functions properly ?
Thanks a lot !
P/S : Seems like my nick name appear quite frequently this few days