HELP! Problem: FOR NEXT Loop counters not incrementing correctly- only in .exe 
Author Message
 HELP! Problem: FOR NEXT Loop counters not incrementing correctly- only in .exe

It sounds like another procedure (possibly an event procedure) is
updating the variable you're using as a counter.  This could
happen in the exe but not in development mode.

I just use Option Explicit in all modules and verify that the
variable used as the counter is declared locally to the procedure
in which it is used.



Sun, 16 Aug 1998 03:00:00 GMT  
 HELP! Problem: FOR NEXT Loop counters not incrementing correctly- only in .exe

Quote:

>We have been having a problem where we have a For Next loop that is working
>incorrectly. The loop will continue to process after the stop condition is
>met, or the counter will jump from 4 to 478 or something like that. The other
>weird thing is this only happens on the .exe. It runs fine in the development
>environment. Any ideas?

Can we see it?
Claude


Thu, 20 Aug 1998 03:00:00 GMT  
 
 [ 2 post ] 

 Relevant Pages 

1. loop not completing correctly

2. list box not looping correctly

3. Display counter during For..Next loop

4. Access not writing record but counter increments.

5. Counter not incrementing

6. HELP******* VB4 32bit NOT SETTING FOCUS CORRECTLY *********HELP!

7. VB4 Object server not correctly registered, problem.

8. VB Re-installtion problem - Object Server Not Correctly Registered

9. VB4 Object server not correctly registered, problem.

10. Problem: Process is created but not executed correctly

11. Strange problem with MSFLEXGRID not showing data correctly

12. VB Re-installtion problem - Object Server Not Correctly Registered

 

 
Powered by phpBB® Forum Software