Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. General Programming
  3. Visual Basic
  4. 'UPGRADE_WARNING: Couldn't resolve default property of object

'UPGRADE_WARNING: Couldn't resolve default property of object

Scheduled Pinned Locked Moved Visual Basic
helpcsharptutorialquestion
2 Posts 2 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • S Offline
    S Offline
    sarat
    wrote on last edited by
    #1

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

    D 1 Reply Last reply
    0
    • S sarat

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

      D Offline
      D Offline
      Dave Kreskowiak
      wrote on last edited by
      #2

      If you click on that link (if you have the MSDN Library installed) it will tell you that before you run the upgrade process, you should go through your VB6 code to determinewhat statements are using the default properties of object, such as the Text property of a TextBox, and modify the code to explicitly specify the property instead of relying on the compile to know what the default property is. The warning is saying that the upgrade wizard cannot determine what the default property is on some object in that statement. You have to modify the code to explicitly specify the default property of all the objects involved.

      A guide to posting questions on CodeProject[^]
      Dave Kreskowiak Microsoft MVP Visual Developer - Visual Basic
           2006, 2007

      1 Reply Last reply
      0
      Reply
      • Reply as topic
      Log in to reply
      • Oldest to Newest
      • Newest to Oldest
      • Most Votes


      • Login

      • Don't have an account? Register

      • Login or register to search.
      • First post
        Last post
      0
      • Categories
      • Recent
      • Tags
      • Popular
      • World
      • Users
      • Groups