Home > Software engineering >  Consult a conditional jump is the simplest program
Consult a conditional jump is the simplest program

Time:09-28

Everybody good
I have not learned vb, but the company now automation reform, the need to use the vb programming, met a very simple question, now is in a program has a lot of small programs, section by section, in which I added a small section of the program, but to meet the master program running for 20 times, executed, this small program I now I use if statements, or skip every time does not perform this paragraph, or perform every time, really confused about it, consult everybody have what ingenious ways to solve, thank you, a little problem, please don't laugh at me oh,

CodePudding user response:

 
'every time when run the main program:
The Count=Count + 1
If Count> 20 Then=
The Count=0
Run your small program
EndIf

CodePudding user response:

reference 1st floor zhao4zhong1 response:
 
'every time when run the main program:
The Count=Count + 1
If Count> 20 Then=
The Count=0
Run your small program
EndIf

+ 10086

CodePudding user response:

reference 1/f, zhao teacher reply:
 
'every time when run the main program:
The Count=Count + 1
If Count> 20 Then=
The Count=0
Run your small program
EndIf

thank you
  • Related