Kinook Software Forum

Go Back   Kinook Software Forum > Visual Build Professional > [VBP] General Discussion
FAQ Community Calendar Today's Posts Search

 
 
Thread Tools Rate Thread Display Modes
Prev Previous Post   Next Post Next
  #2  
Old 09-30-2004, 04:35 PM
kevina kevina is online now
Registered User
 
Join Date: 03-26-2003
Posts: 825
You can look at the LASTSTEP_STATUS which will be set to a non-zero code when the steps failed even if Ignore fail is set to True.

See this sample step for an example (See the vbld_StepDone event script code):

<step action='Run Script' type='0'>
<Language>VBScript</Language>
<Script>x = 1 / 0</Script>
<ignorefail type='11'>-1</ignorefail>
<indent type='3'>1</indent>
<name>Fail Step (viewing status in StepDone)</name>
<script><![CDATA[
Function vbld_StepDone()
Builder.LogMessage Application.ExpandMacros("%LASTSTEP_STATUS%")
End Function
]]></script>
</step>
Reply With Quote
 


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:42 PM.


Copyright © 1999-2023 Kinook Software, Inc.