I worked around it. I am not sure why it is happening but my solution is to pass a variable with the FlexGrid's row to the subroutine and write the SNMP value to the FlexGrid from within the sub. Thanks for the help, Vampire, I may figure out the real reason for the problem one day.
Brian
I don't think it is the timer. I tested the same code with a button and it did not return right away and when it finally did, it was not a correct value -- the same behavior I am experiencing with the timer. I think the problem lies in the For loop and the subroutine, in this case snmpSend...
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...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.