Kinook Software Forum

Go Back   Kinook Software Forum > Visual Build Professional > [VBP] General Discussion

Reply
 
Thread Tools Rate Thread Display Modes
  #1  
Old 10-19-2005, 10:48 AM
Ken Ken is online now
Registered User
 
Join Date: 05-08-2003
Posts: 20
Logging of Steps

I have some steps that I would like to add the loggin data that is printed out as I run. Both for logging and also to tell what actual file is being compile since some of these take quite a while.

The current line that is printed out to the log file is

10/19/2005 8:45:20 AM: Building subroutine step 'Compile n Build '...

I would like to also add the expaned out macro values as well.

Any ideas?

Ken
Reply With Quote
  #2  
Old 10-19-2005, 11:02 AM
kevina kevina is online now
Registered User
 
Join Date: 03-26-2003
Posts: 825
The simplest way would probably be to add some script to the vbld_StepStarted event of the subroutine, to output any additional info you want to display in the log. Here is a sample vbscript event method implementation (modify as necessary for your macro name(s) and formatting desired):

Function vbld_StepStarted()
Builder.LogMessage " with %TESTMACRO%" + " = " + Application.ExpandMacrosAndScript("%TESTMACRO%")
End Function
Reply With Quote
  #3  
Old 10-19-2005, 11:14 AM
Ken Ken is online now
Registered User
 
Join Date: 05-08-2003
Posts: 20
Perfect! Worked the first time.

Thanks,

Ken
Reply With Quote
Reply

Thread Tools
Display Modes Rate This Thread
Rate This Thread:

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 11:39 AM.


Copyright © 1999-2023 Kinook Software, Inc.