PDA

View Full Version : Finding out the current "Step Name"


Dave_Novak
04-21-2006, 07:04 PM
Is there any way (through script events or whatever) to keep track of the current "Step Name" and store this in a Temporary Macro? Additionally, would I be able to tell what type of step it is?

kinook
04-21-2006, 08:56 PM
The current step object is accessible as the named object Step from step script events, so
Step.Name
Step.Action

would return that information. To store in a temporary macro:

vbld_TempMacros().Add "MY_TEMP_MACRO", Step.Name

http://www.visualbuild.com/Manual/script.htm
http://www.visualbuild.com/Manual/nameproperty.htm
http://www.visualbuild.com/Manual/actionproperty.htm
http://www.visualbuild.com/Manual/sysscriptmisc.htm
http://www.visualbuild.com/Manual/macrosaddmethod.htm
http://www.visualbuild.com/Manual/objectmodel.htm

Dave_Novak
04-21-2006, 09:07 PM
Excellent! Thanks!