Just a quick question about threads. If I call a method from a thread, is that method’s operations part of the thread? If I stopped the thread from within the method does the method stop too? Thanks for any help.
Yes, any method called from the thread’s Run event (or that was called from any method that was called from the Run event) is part of the thread. If you stop the thread, you stop the method.
I emphasize the Run event because a Thread subclass can have methods that you can call directly, but that doesn’t make them threaded. Only what is called from the Run event is part of the thread. So you can have a method defined in the thread class that doesn’t run as part of the thread, and you can have a method defined in some module that will run as part of the thread if it was called from the Run event.
Awesome! Thanks. That answers the question!