Results 1 to 7 of 7

Thread: Name Conflict

  1. #1

    Thread Starter
    Hyperactive Member
    Join Date
    Apr 2001
    Location
    Montreal, Quebec
    Posts
    400

    Question Name Conflict

    I have an application where I am making a new version. I copied the existing modules, forms, etc into a new directory. When I go to load the original application I get an error - "Name conflicts with an existing module, project, or object library". What's the best way of creating a new instance of an existing application?

  2. #2
    vbGrandpa
    Guest
    When I get that error (and it happens frequently) I edit out the
    "Module number" line with a text edittor. Hope this is what you're talking about.

  3. #3

    Thread Starter
    Hyperactive Member
    Join Date
    Apr 2001
    Location
    Montreal, Quebec
    Posts
    400
    vbGrandpa

    Not sure I understand. Do you mean if you have Module1(Myfile.bas) you rename "Module1"?

    Stan

  4. #4
    vbGrandpa
    Guest
    If you and I are talking about the same thing,here's what to do.

    Go to the start button and from the RUN line, type RUN Notepad your modual.bas.

    The first line will be Module somenumber.
    Take out this line.
    Then add the module back into the project.

  5. #5

    Thread Starter
    Hyperactive Member
    Join Date
    Apr 2001
    Location
    Montreal, Quebec
    Posts
    400
    Boy, I'm feeling dense. I can run Notepad ffom the Run but how are you accessing the Module in Notepad? Couldn't I just rename Module1 to ABCD directly?

    Appreciate your time

    Stan

  6. #6
    vbGrandpa
    Guest
    Use a text editor and look at yourfile.bas.

    It'll look something like this:

    Attribute VB_Name = "Module3"
    Public FileCheckedOut As Boolean


    Take out the first line.

  7. #7

    Thread Starter
    Hyperactive Member
    Join Date
    Apr 2001
    Location
    Montreal, Quebec
    Posts
    400
    Okay, now I get it. Thanks for the help.

    Stan

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