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
  #1  
Old 04-27-2006, 12:25 PM
modernrocketry modernrocketry is online now
Registered User
 
Join Date: 04-06-2006
Posts: 19
Fail Build from VBScript

I am using the tlbimp command in a build and have noticed that when an error occurs, the build continues.

So I cobbled together a vb script to parse the LASTSTEP_OUTPUT and look for an error (TlbImp : error)
Everything works as planned, except stopping the build if an error is found.

I thought "Step.BuildStatus = vbldStepStatFailed" would stop the set, but it reports succeeded and keeps going.
What am I doing wrong?

Code:
output = Split(Application.Macros(vbldMacroSystem)("LASTSTEP_OUTPUT"), vbCrLf)
For i = 0 To UBound(output)
    strSearchThis = output(i)
    if instr(strSearchThis, "TlbImp : error") > 0 then
         Builder.LogMessage "TLB ERROR FOUND"
         Step.BuildStatus = vbldStepStatFailed
         Exit for
    end if
    
Next
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:37 PM.


Copyright © 1999-2023 Kinook Software, Inc.