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)
-   -   Need to save/dump macro values to a file (https://www.kinook.com/Forum/showthread.php?t=4468)

tim.calderwood 04-19-2010 05:30 PM

Need to save/dump macro values to a file
 
I am sorry if this has been answered before, but I am looking for a way to save all of the macros and values to a text file. Anybody know how to do this?

kinook 04-19-2010 05:39 PM

Which macros? In what format? Macros.Save will save in XML format.
http://www.kinook.com/VisBuildPro/Ma...savemethod.htm

tim.calderwood 04-19-2010 05:54 PM

We are trying to save all macros at the start of a build for later debugging if need be. Format really does not mater, XML will work just fine. I am trying to figure out how to use the Macro.Save currently.

kinook 04-19-2010 06:10 PM

To save all macros (highest precedence for different types with same name):
Code:

vbld_AllMacros.Save "%TEMP%\All.macros"
http://www.kinook.com/VisBuildPro/Ma...scriptmisc.htm

To save a particular type of macros (i.e., Temporary):
Code:

Application.Macros(vbldMacroTemporary).Save "%TEMP%\Temp.macros"
Put the code in a Run Script step.

http://www.kinook.com/VisBuildPro/Manual/runscript.htm


All times are GMT -5. The time now is 05:47 PM.


Copyright © 1999-2023 Kinook Software, Inc.