Delay component when variable used and variable value is 0
Posted: Mon Apr 02, 2007 3:09 pm
Hi,
I seem to have found a problem when a Delay component is used and when the delay is a variable and the variable value is 0. The Delay either lasts too long or an enless loop is created (I'm not sure which).
The quick fix is a check to make sure the variable is not zero, however, as the delay is a user input variable and no delay is a realistic option to choose it would make for cleaner coding if a variable holding a value of 0 could be used?
Or is there a likely bug in my code?
Thanks,
Mark
I seem to have found a problem when a Delay component is used and when the delay is a variable and the variable value is 0. The Delay either lasts too long or an enless loop is created (I'm not sure which).
The quick fix is a check to make sure the variable is not zero, however, as the delay is a user input variable and no delay is a realistic option to choose it would make for cleaner coding if a variable holding a value of 0 could be used?
Or is there a likely bug in my code?
Thanks,
Mark