Kinook Software Forums

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

Reply
 
Thread Tools Rate Thread Display Modes
  #1  
Old 04-14-2011, 12:34 AM
aaronlawrence aaronlawrence is online now
Registered User
 
Join Date: 04-11-2011
Posts: 6
Scripting: what does Step.Parent return?

What does Step.Parent return?

I' m writing a vbld_StepDoneProject event;

I was hoping to iterate through the parent Steps so that the user can see the stack of steps that lead to the particular problematic step. Like:

Failed: Build bob.exe
in Build Bob modules
in Build Main

But Step.Parent doesn't seem to return a Step, because I can't call .Name or .Parent on what it returns.
Reply With Quote
  #2  
Old 04-14-2011, 06:33 AM
kinook kinook is online now
Administrator
 
Join Date: 03-06-2001
Location: Colorado
Posts: 5,742
It returns the parent Steps collection in the object model.
http://www.kinook.com/VisBuildPro/Ma...ntproperty.htm
http://www.kinook.com/VisBuildPro/Ma...collection.htm

You would need to iterate back through the Steps collection from Step.Index for each successive Step.Indent level (but tracing back from a subroutine or failure step would be tricky).

We do also have on our todo list to expose the CallStack property to scripting.
http://www.kinook.com/Forum/showthre...?threadid=4388
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 01:12 PM.


Copyright 1999-2019 Kinook Software, Inc.