Kinook Software Forum

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

Reply
 
Thread Tools Rate Thread Display Modes
  #1  
Old 05-02-2006, 02:43 PM
spsbuilder spsbuilder is online now
Registered User
 
Join Date: 05-02-2006
Posts: 1
Suppressing error message from Err.Raise

Is there a way to suppress the message "Error at Line x, Column y" when using Err.Raise?

I want to make a user action with vbscript code fail, but I don't like it, when it looks like an error in th scipt.
Reply With Quote
  #2  
Old 05-02-2006, 03:01 PM
kinook kinook is online now
Administrator
 
Join Date: 03-06-2001
Location: Colorado
Posts: 6,013
Return a value of vbldStepStatFailed from the action's vbld_BuildStep method instead of raising an error. In VBScript:
vbld_BuildStep = vbldStepStatFailed

http://www.visualbuild.com/Manual/userdefaction.htm
Reply With Quote
  #3  
Old 05-11-2006, 07:23 AM
teutsch teutsch is online now
Registered User
 
Join Date: 05-11-2006
Posts: 1
That's just what I tried, but it doesn't work as expected:
Even when returning vbldStepStatFailed, the step is logged as "Completed" and Visual Build doesn't branch into the Failure Steps subroutine.
I've tried to enter the code directly into a VBScript-Step and also by implementing it into a user-defined action, same outcome...
I'm using Visual Build v5.5
Reply With Quote
  #4  
Old 05-11-2006, 07:53 AM
kinook kinook is online now
Administrator
 
Join Date: 03-06-2001
Location: Colorado
Posts: 6,013
That capability is new to v6.
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 03:14 PM.


Copyright © 1999-2023 Kinook Software, Inc.