View Full Version : Suppressing error message from Err.Raise
spsbuilder
05-02-2006, 02:43 PM
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.
kinook
05-02-2006, 03:01 PM
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
teutsch
05-11-2006, 07:23 AM
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
kinook
05-11-2006, 07:53 AM
That capability is new to v6.
vBulletin® v3.8.11, Copyright ©2000-2024, vBulletin Solutions Inc.