CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 3 of 3
  1. #1
    Join Date
    Jan 2008
    Posts
    80

    '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

  2. #2
    Join Date
    Jan 2006
    Location
    Fox Lake, IL
    Posts
    15,007

    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?
    David

    CodeGuru Article: Bound Controls are Evil-VB6
    2013 Samples: MS CODE Samples

    CodeGuru Reviewer
    2006 Dell CSP
    2006, 2007 & 2008 MVP Visual Basic
    If your question has been answered satisfactorily, and it has been helpful, then, please, Rate this Post!

  3. #3
    Join Date
    Jun 2004
    Location
    Kashmir, India
    Posts
    6,808

    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
  •  





Click Here to Expand Forum to Full Width

Featured