View Single Post
  #1  
Old 02-01-2006, 01:47 PM
Scotty Scotty is online now
Registered User
 
Join Date: 01-30-2006
Posts: 6
Simple VB Script Question?

I am trying to pass an error when 0 files are copied through the following code, in the Step tab of the script editor.

Function vbld_StepDone()
if InStr(Left(vbld_AllMacros()("LASTSTEP_OUTPUT").Val ue,16), "0 file(s) copied") = 0 Then
Err.Raise 1, Step.Name, "0 file(s) copied"
end if

When I rebuild VP 5.7 says :
'Error firing vbld_StepDone event: Error in Step script code at Line 3 column 3 (0 file(s) copied)

What am I doing wrong?
Reply With Quote