Kinook Software Forum

Kinook Software Forum (https://www.kinook.com/Forum/index.php)
-   [VBP] General Discussion (https://www.kinook.com/Forum/forumdisplay.php?f=2)
-   -   Logging of Steps (https://www.kinook.com/Forum/showthread.php?t=1323)

Ken 10-19-2005 10:48 AM

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

kevina 10-19-2005 11:02 AM

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

Ken 10-19-2005 11:14 AM

Perfect! Worked the first time.

Thanks,

Ken


All times are GMT -5. The time now is 08:12 PM.


Copyright © 1999-2023 Kinook Software, Inc.