nollieflip
Programmer
I am writing a script that is getting used a DTS package for SQL server 2000. The VBScript parser is hanging on the following snippet, specifically the first line. Parsing error, expected ')'. Anyone have any ideas? Maybe my syntax is way off, I'm a bit rusty...
Dim aryPCOLevel(0 To 2) As Integer
aryPCOLevel(0) = "DTSSource("Field1""
aryPCOLevel(1) = "DTSSource("Field2""
aryPCOLevel(2) = "DTSSource("Field3""
intHigh = aryPCOLevel(0)
For i = 2 To UBound(aryPCOLevel)
If aryPCOLevel(i) > intHigh Then
intHigh = aryPCOLevel(i)
End If
End Sub
DTSDestination("CFPSomeField" = intHigh
Dim aryPCOLevel(0 To 2) As Integer
aryPCOLevel(0) = "DTSSource("Field1""
aryPCOLevel(1) = "DTSSource("Field2""
aryPCOLevel(2) = "DTSSource("Field3""
intHigh = aryPCOLevel(0)
For i = 2 To UBound(aryPCOLevel)
If aryPCOLevel(i) > intHigh Then
intHigh = aryPCOLevel(i)
End If
End Sub
DTSDestination("CFPSomeField" = intHigh