saratk
February 18th, 2008, 07:46 AM
I am upgrading VB6 to VB.Net
here is the code giving me the error
Public Sub oCustomTask2_Trans_Sub1(ByVal oCustomTask2 As Object)
Dim oTransformation As DTS.Transformation2
oTransformation = oCustomTask2.Transformations.New("DTS.DataPumpTransformCopy")
Error 168 Constructor call is valid only as the first statement in an instance constructor.
whats the meaning of that and how can i resolve that?
here is the upgrade warning given by Upgrade vizard
'UPGRADE_WARNING: Couldn't resolve default property of object oCustomTask2.Transformations. Click for more: 'ms-help://MS.VSCC.v80/dv_commoner/local/redirect.htm?keyword="6A50421D-15FE-4896-8A1B-2EC21E9037B2"'
here is the code giving me the error
Public Sub oCustomTask2_Trans_Sub1(ByVal oCustomTask2 As Object)
Dim oTransformation As DTS.Transformation2
oTransformation = oCustomTask2.Transformations.New("DTS.DataPumpTransformCopy")
Error 168 Constructor call is valid only as the first statement in an instance constructor.
whats the meaning of that and how can i resolve that?
here is the upgrade warning given by Upgrade vizard
'UPGRADE_WARNING: Couldn't resolve default property of object oCustomTask2.Transformations. Click for more: 'ms-help://MS.VSCC.v80/dv_commoner/local/redirect.htm?keyword="6A50421D-15FE-4896-8A1B-2EC21E9037B2"'