Kinook Software Forum

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

 
 
Thread Tools Rate Thread Display Modes
Prev Previous Post   Next Post Next
  #2  
Old 08-18-2005, 10:10 AM
kinook kinook is online now
Administrator
 
Join Date: 03-06-2001
Location: Colorado
Posts: 6,027
The version is typically stored in the ProductVersion property (updated from the Wise action via a Property/Value setting for ProductVersion). To update a value in a different table, you could use the WfWI automation object model to set the desired value. For instance, add this VBScript to the Wise step's vbld_StepStarted script event (step properties -> Script Editor -> step tab -> Events -> vbld_StepStarted):

Set wise = CreateObject("WFWI.Document")
fname = Step.ExpProperty(Builder, "Filename")
wise.Open fname
Set tblSumm = wise.WTables("Summary")
tblSumm.WRows.Row("<version # row key>").WColumns("Value").Data = Application.ExpandMacrosAndScript("%VER_MACRO%")
wise.Save fname

replacing <version # row key> and VER_MACRO as appropriate.
Reply With Quote
 


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 03:03 AM.


Copyright © 1999-2023 Kinook Software, Inc.