Results 1 to 2 of 2

Thread: Ambiguous in the Namespace

  1. #1

    Thread Starter
    Lively Member
    Join Date
    Jun 2001
    Posts
    107

    Question Ambiguous in the Namespace

    The errors I'm getting are on the lines with a *.

    I can't figure out what the problem is, I have very similar syntax in other projects, even dealing with the same classes with no problem. I have web references and everything.

    Help?


    Imports wsJobManager = xlait.xlp.ui.ws.si.jobmanager

    Public Sub main(ByVal m_gobjUser As xlait.core.Authentication.XLGeniusUser)

    Dim m_wsJobManager As wsJobManager.JobManager *
    (ambiguous)

    m_wsJobManager = New wsJobManager.JobManager *
    (ambiguous)

    startFTP(success)
    End Sub
    Public Sub startFTP(ByRef success As Boolean)

    WriteToEventLog("AppStart", "")
    Console.WriteLine("Successful")
    Try
    If m_wsJobManager.FTPDBUpload(GetUser(m_gobjUser), filename) = True Then... *
    (not declared)
    Last edited by bassist695; Aug 25th, 2003 at 02:54 PM.

  2. #2
    Your Ad Here! Edneeis's Avatar
    Join Date
    Feb 2000
    Location
    Moreno Valley, CA (SoCal)
    Posts
    7,339
    Ambiguous means that one of thos names can be evaluated to more than one object in the current namespace. The easiest way to fix it is to use the full or at least more of the full namespace of the object. So instead of wsJobManager.JobManager put something like TopLevelNamespaceHere.wsJobManager.JobManager or remove some of the Import statments from the project.

    Also why not condense this:
    Dim m_wsJobManager As wsJobManager.JobManager
    m_wsJobManager = New wsJobManager.JobManager

    to this:
    Dim m_wsJobManager As New wsJobManager.JobManager

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