Hi, I've got a VB5 program that has a number of Shell functions that run a DOS program. Originally, I had problems with it because, as you probably know, the statements following the shell function are executed whether the shell function completed its calculations or not. As a result, I created a random number generator that gave me crazy results.
Then I threw in a timer function (thanks to whoever suggested that) that paused the program for 1 second after the shell function, allowing the DOS program to actually finish. Now I am actually getting constant answers, but I have to wait some 5 minutes or even more for the entire program to compute.
Question: Is there some sort of statement that I can put after a shell function that waits for and recognizes when the shell finishes , and then continues on with the program?
Thanks.
Then I threw in a timer function (thanks to whoever suggested that) that paused the program for 1 second after the shell function, allowing the DOS program to actually finish. Now I am actually getting constant answers, but I have to wait some 5 minutes or even more for the entire program to compute.
Question: Is there some sort of statement that I can put after a shell function that waits for and recognizes when the shell finishes , and then continues on with the program?
Thanks.