|
#1
|
|||
|
|||
Increment a numeric value in a macro
I have a need to increment numeric value of a Macro .e.g Macro1 after certain steps are performed, how do you achieve this in VBP 8?
Here is pseudo code. 1. Perform action1. 2. Macro1 + 1 3. Perform Action 2 4. Macro1 + 1 Note: in step 4 value of Macro1 should be 2. |
#2
|
|||
|
|||
#3
|
|||
|
|||
As always, thanks a bunch for your prompt reply however I ended up using %LOOP_VALUE% along with Loop statement, it worked really well.
|
#4
|
|||
|
|||
One more quick qs:
Is it possible to start Counter in a loop (Using VBP Loop feature) from a specific value .e.g For(i=10;i<= 15;i++)..currently if I used "Count" option from dropdown, VBP always looks at it "UPTO" for instance if %COUNTER% is 45 then VBP loops though 45 times... any help is appreciated |
#5
|
|||
|
|||
Quote:
|
#6
|
|||
|
|||
Just use an offset from the loop value. For instance, loop for a Count of 5 and use [%LOOP_VALUE%+10] in the loop.
|
Thread Tools | |
Display Modes | Rate This Thread |
|
|