bpcampbell
Programmer
I have a timer that contains a For loop that reads the contents of each row of an MSFlexGrid, and uses those contents in a subroutine to poll an SNMP agent. It is my intention to write the returned value to a field in the MSFLexGrid.
When running, everything works as it should, except the for loop continues before the subroutine is finished, resulting in an incorrect value for the returned variable. How can I syncronize the process and make the for loop wait until the sub has completed?
I hope I am clear in the problem I describe. I have used several Watches and Debug.Print statements to isolate this problem and hope someone can help me.
Brian
When running, everything works as it should, except the for loop continues before the subroutine is finished, resulting in an incorrect value for the returned variable. How can I syncronize the process and make the for loop wait until the sub has completed?
I hope I am clear in the problem I describe. I have used several Watches and Debug.Print statements to isolate this problem and hope someone can help me.
Brian