Calling a subroutine and continuing the code after the subroutine without waiting for the subroutine to finish
Posted on 2007-11-13
I have a sub to be called from sub main. But I want this call of the subroutine, not to wait for the subroutine to finish execution, but rather it should do its job aside and the sub main should continue the code after it. Plus this should be in iterative way, not only calling the subroutine once.
'Procedure level variables
For x=0 to 10
sub Extract (byval value)
So once Extract(y) is called, code 3 should execute on the side, and at the same time code 2 should continue and do its work even go to the next iterate.