Help with Looping Inquiry
Posted: Wed Jul 21, 2010 3:52 pm
In my Desktop Application for the Comunity Members of my Web Application, I have been trying to display different messages in one specific field on the screen which I think I would need to use the command repeat. I also think that my repeat loop will need to be dynamic based on the various situations listed below. At the time the default update period is set to 15 minutes.
For right now I would like to concentrate on completed Situation 1 as this one should be the easist to complete. I am just not sure how to go about it. I have been playing with various code which I have managed to lock up RunRev and have had to Force Quit it through Task Manager. This is why I am asking on the forums to find a better way to handle this.
Situation 1:
If the web service returns 0 which most of the time it would be, I am wanting to display 2 different messages that will repeat itself at a slow rate until the time that the program needs to update iteself to see if anything is new from the web server. The first message would be something like All organizations operating on normal scedule and the second message being Results delayed 15 minutes. My thought was to space these two messages out every 30 seconds and that each message would be displayed 15 times before the next round to check for any new information.
Situation 2:
This one would be more difficult as it would have to take into account the number of organizations that have been returned from the web server and then display each Organization a specific amount of seconds so that the last one would be x amount of seconds before the next check from the web server. I would think that if the number of organizations is an odd number then I would put in a system message like Results Delayed 15 Minutes after so many Organizations have been displayed. I presume that this one would take more math to calculate.
For right now I would like to concentrate on completed Situation 1 as this one should be the easist to complete. I am just not sure how to go about it. I have been playing with various code which I have managed to lock up RunRev and have had to Force Quit it through Task Manager. This is why I am asking on the forums to find a better way to handle this.
Situation 1:
If the web service returns 0 which most of the time it would be, I am wanting to display 2 different messages that will repeat itself at a slow rate until the time that the program needs to update iteself to see if anything is new from the web server. The first message would be something like All organizations operating on normal scedule and the second message being Results delayed 15 minutes. My thought was to space these two messages out every 30 seconds and that each message would be displayed 15 times before the next round to check for any new information.
Situation 2:
This one would be more difficult as it would have to take into account the number of organizations that have been returned from the web server and then display each Organization a specific amount of seconds so that the last one would be x amount of seconds before the next check from the web server. I would think that if the number of organizations is an odd number then I would put in a system message like Results Delayed 15 Minutes after so many Organizations have been displayed. I presume that this one would take more math to calculate.