04-19-2006, 08:20 PM
Hello, I would like to know if it is possible to envoice a function from a macro, which spawns another process running that function so that control immediately returns back to the macro, regardless of the state of the function. Simplistically I have a code piece as an example:
myfun is a function that has this in it
then the macro would be
In this example you should see the following in the output window (note that the print order is not significant, just trying to give an idea):
The function is running - 1
The function is running - 2
Testing call to function
The function is running - 3
Testing call to function
Testing call to function
Testing call to function
Testing call to function
The function is running - 4
......
The function is running - 100000
The main jist is that the macro and functions are now running independantly.
Can this be done, and if so, how?
Thank you for your advice.
-kam
myfun is a function that has this in it
then the macro would be
In this example you should see the following in the output window (note that the print order is not significant, just trying to give an idea):
The function is running - 1
The function is running - 2
Testing call to function
The function is running - 3
Testing call to function
Testing call to function
Testing call to function
Testing call to function
The function is running - 4
......
The function is running - 100000
The main jist is that the macro and functions are now running independantly.
Can this be done, and if so, how?
Thank you for your advice.
-kam