Kinook Software Forum

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

Reply
 
Thread Tools Rate Thread Display Modes
  #1  
Old 08-25-2009, 03:02 PM
RodrigoReboucas RodrigoReboucas is online now
Registered User
 
Join Date: 07-15-2009
Posts: 12
How to set Make VS.NET properties through vbscript?

I have written a script to create "Make VS.NET" steps. I can set the "Filename" property through script but I can't set any of the other properties available inside a step such as "Build Behavior". How do I set through script the properties which the label inside the step has more than 1 word, it's a dropdown or a checkbox for example.

This is my code:

With CreateStep(vbldStepMain, "Make VS.NET", "Build " + appName , 1)

.Property("Filename") = strNextLine
.Property("Build behavior") = "Rebuild" ' this doesn't work
End With

Function CreateStep(typ, action, name, indent)

Set objStep = Application.Project.Steps(typ).Add(action)
objStep.Name = name
objStep.Indent = indent
Set CreateStep = objStep

End Function

Thanks!
Reply With Quote
  #2  
Old 08-25-2009, 03:12 PM
kinook kinook is online now
Administrator
 
Join Date: 03-06-2001
Location: Colorado
Posts: 6,034
Create a step in the GUI and save, then examine the .bld file in a text editor to determine the property names and values. For Build behavior of Rebuild, it would be

.Property("Force") = 1

Drop-down list properties are a 0-based index value. Checkboxes are True/False (0/-1).
Reply With Quote
  #3  
Old 08-25-2009, 04:34 PM
RodrigoReboucas RodrigoReboucas is online now
Registered User
 
Join Date: 07-15-2009
Posts: 12
That's what I needed.

Thanks a lot!
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 12:58 AM.


Copyright © 1999-2023 Kinook Software, Inc.