|
-
Jul 6th, 2000, 10:14 AM
#1
Thread Starter
Junior Member
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
-
Jul 6th, 2000, 10:27 AM
#2
Hyperactive Member
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!
-
Jul 6th, 2000, 11:40 AM
#3
New Member
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
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|