|
-
February 15th, 2008, 07:37 AM
#1
'UPGRADE_WARNING: Couldn't resolve default property of object
I am upgrading my VB app from VB6 to VB.Net
here is the code complaining the error ( warning)
i am new to VB and how to resolve the problem?
oTask = goPackage.Tasks.New(gsDTSExecuteSQLTask) givs the problem
code :
Public Sub Task_Sub1(ByVal goPackage As Object)
Dim oTask As DTS.Task
Dim oLookup As DTS.Lookup
Dim oCustomTask1 As DTS.ExecuteSQLTask2
'UPGRADE_WARNING: Couldn't resolve default property of object goPackage.Tasks. Click for more: 'ms-help://MS.VSCC.v80/dv_commoner/local/redirect.htm?keyword="6A50421D-15FE-4896-8A1B-2EC21E9037B2"'
oTask = goPackage.Tasks.New(gsDTSExecuteSQLTask)
oTask.Name = gsCreateTable & sTalDbtbl & gsTask
oCustomTask1 = oTask.CustomTask
-
February 15th, 2008, 11:35 AM
#2
Re: 'UPGRADE_WARNING: Couldn't resolve default property of object
Explain a little more of what it's supposed to do, and use CODE TAGS so we can read code snippets.
Are you passing a query?
-
February 15th, 2008, 01:53 PM
#3
Re: 'UPGRADE_WARNING: Couldn't resolve default property of object
I suppose you are passing a DTSPackage object to the goPackage. If that is the case then you would need to declare goPackage as the same type.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|