Hi,
Just wondering how I can initialize a class during runtime?
I have created a class and I have used it in a service, but during runtime I want to be able to initialize it many times.
I know how to initialize it (MyClass.initialize) but can't work out how to initialize it multiple times.
For example:
When I open the app I want to press a button and it will initialize the class.
eg. MyClass.initialize("test1")
I then want to press the same button again, but initialize it with a different string
eg. MyClass.initialize("test2")
I want to be able to initialize the class multiple times without closing the previous one.
I am guessing I need to Dim it in the Process_Globals ad then initialize it in Service_Create but can't work out how to do it multiple times during runtime.
Anyone able to help me out ?
Just wondering how I can initialize a class during runtime?
I have created a class and I have used it in a service, but during runtime I want to be able to initialize it many times.
I know how to initialize it (MyClass.initialize) but can't work out how to initialize it multiple times.
For example:
When I open the app I want to press a button and it will initialize the class.
eg. MyClass.initialize("test1")
I then want to press the same button again, but initialize it with a different string
eg. MyClass.initialize("test2")
I want to be able to initialize the class multiple times without closing the previous one.
I am guessing I need to Dim it in the Process_Globals ad then initialize it in Service_Create but can't work out how to do it multiple times during runtime.
Anyone able to help me out ?