'********************************************************************** ' Visual Basic ActiveX Script '************************************************************************ Function Main() Main = DTSTaskExecResult_Success RowDate = DTSGlobalVariables("RowDate").value StartTime = DTSGlobalVariables("StartTime").value Interval = DTSGlobalVariables("Interval").value IF StartTime = 2400 Then StartTime = 0 RowDate = DateAdd("d" , 1 , RowDate) ElseIF Interval = 30 Then StartTime = StartTime + 30 Interval = 70 ElseIF Interval = 70 Then StartTime = StartTime + 70 Interval = 30 End IF DTSGlobalVariables("RowDate").value = RowDate DTSGlobalVariables("StartTime").value = StartTime DTSGlobalVariables("Interval").value = Interval End Function
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)