Kinook Software Forum

Go Back   Kinook Software Forum > Visual Build Professional > [VBP] General Discussion
FAQ Community Calendar Today's Posts Search

Reply
 
Thread Tools Rate Thread Display Modes
  #1  
Old 01-27-2014, 05:06 PM
Shiamak Shiamak is online now
Registered User
 
Join Date: 02-07-2006
Posts: 84
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.
Reply With Quote
  #2  
Old 01-27-2014, 05:12 PM
kinook kinook is online now
Administrator
 
Join Date: 03-06-2001
Location: Colorado
Posts: 6,034
http://www.kinook.com/Forum/showthread.php?t=4374

http://www.kinook.com/Forum/showthread.php?t=5198
Reply With Quote
  #3  
Old 01-27-2014, 06:05 PM
Shiamak Shiamak is online now
Registered User
 
Join Date: 02-07-2006
Posts: 84
As always, thanks a bunch for your prompt reply however I ended up using %LOOP_VALUE% along with Loop statement, it worked really well.
Reply With Quote
  #4  
Old 03-17-2014, 06:02 PM
Shiamak Shiamak is online now
Registered User
 
Join Date: 02-07-2006
Posts: 84
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
Reply With Quote
  #5  
Old 03-17-2014, 06:55 PM
Shiamak Shiamak is online now
Registered User
 
Join Date: 02-07-2006
Posts: 84
Quote:
Originally Posted by Shiamak View Post
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
Just to make sure you got it the problem right...I would like i to start from 11 .
Reply With Quote
  #6  
Old 03-17-2014, 10:21 PM
kinook kinook is online now
Administrator
 
Join Date: 03-06-2001
Location: Colorado
Posts: 6,034
Just use an offset from the loop value. For instance, loop for a Count of 5 and use [%LOOP_VALUE%+10] in the loop.
Reply With Quote
  #7  
Old 03-18-2014, 12:27 PM
Shiamak Shiamak is online now
Registered User
 
Join Date: 02-07-2006
Posts: 84
Quote:
Originally Posted by kinook View Post
Just use an offset from the loop value. For instance, loop for a Count of 5 and use [%LOOP_VALUE%+10] in the loop.
thanks again for your prompt reply however is there any plan in future to turn LOOP function of VBP a true loop function (as it is available in any other computer language)
Reply With Quote
  #8  
Old 03-18-2014, 07:00 PM
kinook kinook is online now
Administrator
 
Join Date: 03-06-2001
Location: Colorado
Posts: 6,034
It's not really our intention to implement every feature of a programming language in Visual Build itself. We provide the features that would most often be used in build scenarios, and if you need to go beyond that, you can use script code and repeating build rules.
http://www.kinook.com/VisBuildPro/Manual/script.htm
http://www.kinook.com/VisBuildPro/Manual/buildrules.htm
Reply With Quote
  #9  
Old 03-19-2014, 05:04 PM
Shiamak Shiamak is online now
Registered User
 
Join Date: 02-07-2006
Posts: 84
Thank you so much for your response..and I also want to point out that you guys are doing a great job by keeping customer support up, every tools has its pros and cons but a great customer support can off set that gap.. which you guys have done very well.

I have had used many tools similar to VisualBuild, I must say, VisualBuils is certainly easy to use and very intuitive...The only issue I see is with Help documentations which is just not easy to follow....

Thanks again
Reply With Quote
Reply


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



All times are GMT -5. The time now is 07:38 PM.


Copyright © 1999-2023 Kinook Software, Inc.