10-07-2009, 03:30 PM
@qtpDeepak - Please wrap your code whenever you post.
The solution you have provided is not correct. This will always print 1 popup for the first reporter, 2 for the second one irrespective of how many times it comes up. The reason being, If is a conditional loop which will enter only once. Your counter will take iterate only once depending upon the previous k value. Morever your counter is not capturing multiple occurences of the same popup during the same instance.
Iteration counters are in the logical loop, for Next and While wend or if you require in the run instance then the occurences of the object needs to be counted and stored in the variable separately.
The solution you have provided is not correct. This will always print 1 popup for the first reporter, 2 for the second one irrespective of how many times it comes up. The reason being, If is a conditional loop which will enter only once. Your counter will take iterate only once depending upon the previous k value. Morever your counter is not capturing multiple occurences of the same popup during the same instance.
Iteration counters are in the logical loop, for Next and While wend or if you require in the run instance then the occurences of the object needs to be counted and stored in the variable separately.
Basanth
Give a fish to a man and you feed him for a day..Teach a man how to fish and you feed him for life.
Give a fish to a man and you feed him for a day..Teach a man how to fish and you feed him for life.