Solved

pass variable between projects

Posted on 1998-06-22
7
196 Views
Last Modified: 2010-05-03
Is this possible?  Even a non-traditional, "cheating" way around the problem will work for me at this point, as the lack of a solution here is resulting in corrupt database records....

So, can I access the value of a variable I declared and gave value to in a project (.vbp - I have two in the app) from the second project?  OR, along the same lines, can I get to a checkbox on the form the second project is called from?  Something along the lines of
     if ProjName.FormName.chkValue = True then

ANY help will be greatly appreciated...
0
Comment
Question by:kmarf
7 Comments
 
LVL 1

Expert Comment

by:MAVERICK
ID: 1464004
One method I can think of......................
use the registry to store the variable. There would be a PAQ which tells you how

0
 

Expert Comment

by:Ajoy
ID: 1464005
kmarf,
you could also use objects with certain properties for storing the value  and use DCom or remote automation to communicate between the two projects

0
 
LVL 1

Author Comment

by:kmarf
ID: 1464006
I'd really rather avoid going outside VB itself - sorry I didn't specify.

Ajoy - could you elaborate a little on CDom & rem auto?  

I guess this means there's no straight passing between vbp's huh?
0
Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

 

Expert Comment

by:Ajoy
ID: 1464007
Dcom and remote automation are  supported by VB and it is very simple to use. For more details on how to implement Dcom and remote auto in VB refer to the following books
1.Inside Dcom programming (Wrox publishers)
2.Business objects.(")
0
 
LVL 1

Author Comment

by:kmarf
ID: 1464008
Situation is, I'm not a full-time programmer (would be if I got the time...).  I'm patching up a program somebody else bailed on, and he never accounted for this aspect of it.

I was hoping for code...syntax...  VB's online books has nothing regarding Dcom.  
Is what I want to do supported normally in VB or does anyone haave a workaround is what I'm asking.
0
 
LVL 6

Accepted Solution

by:
anthonyc earned 50 total points
ID: 1464009
See Q176058 in the MS Knowledge Base

It gives source and everything
0
 
LVL 1

Author Comment

by:kmarf
ID: 1464010
That's exactly it.  My heartfelt thanks to you, anthonyc.
I've got new info on the printing problem, if anyone cares to take another stab...  I'll continue to increase points...
Q.10058033
0

Featured Post

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Enums (shorthand for ‘enumerations’) are not often used by programmers but they can be quite valuable when they are.  What are they? An Enum is just a type of variable like a string or an Integer, but in this case one that you create that contains…
You can of course define an array to hold data that is of a particular type like an array of Strings to hold customer names or an array of Doubles to hold customer sales, but what do you do if you want to coordinate that data? This article describes…
Get people started with the utilization of class modules. Class modules can be a powerful tool in Microsoft Access. They allow you to create self-contained objects that encapsulate functionality. They can easily hide the complexity of a process from…
This lesson covers basic error handling code in Microsoft Excel using VBA. This is the first lesson in a 3-part series that uses code to loop through an Excel spreadsheet in VBA and then fix errors, taking advantage of error handling code. This l…

863 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

25 Experts available now in Live!

Get 1:1 Help Now