Results 1 to 3 of 3

Thread: Accessing functions from different projects

  1. #1

    Thread Starter
    Junior Member
    Join Date
    Feb 2000
    Location
    Medford,MA,USA
    Posts
    23
    Hi,
    I have 2 projects open. ie..I created a project and then I went to File-> Add Project->Standard EXE and this way I have 2 projects.
    Now, I have a Public Function in Project1 that I want to access in Project2. What is the correct syntax?

    I tried:
    Call Project1.MyFunction

    But I got an error message saying "Object Required" on that line of code.

    Any help appreciated

    Zack

  2. #2
    Hyperactive Member
    Join Date
    Sep 1999
    Location
    Cleveland, Ohio
    Posts
    263
    I honestly didn't think you could do that, although maybe you can. I thought that having two projects open meant only that, that they are still independent of one another. At any rate, you can get around this by just combining them into one project!

  3. #3
    New Member
    Join Date
    Jun 2000
    Location
    Canada
    Posts
    8

    Wink Combine Them

    Yeah, I think that combining the project is the best and the cleanest solution. Or at least copying the function that you need into both programs. Why do you want to access another program's code?? Just wondering...
    Jonathan (Co President - Big Berdie International)
    Karl Moore RULEZ!
    "Pipers Do It With Amazing Grace!"

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