Solved

pass variable between projects

Posted on 1998-06-22
7
193 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
Find Ransomware Secrets With All-Source Analysis

Ransomware has become a major concern for organizations; its prevalence has grown due to past successes achieved by threat actors. While each ransomware variant is different, we’ve seen some common tactics and trends used among the authors of the malware.

 

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

How your wiki can always stay up-to-date

Quip doubles as a “living” wiki and a project management tool that evolves with your organization. As you finish projects in Quip, the work remains, easily accessible to all team members, new and old.
- Increase transparency
- Onboard new hires faster
- Access from mobile/offline

Join & Write a Comment

Introduction I needed to skip over some file processing within a For...Next loop in some old production code and wished that VB (classic) had a statement that would drop down to the end of the current iteration, bypassing the statements that were c…
I’ve seen a number of people looking for examples of how to access web services from VB6.  I’ve been using a test harness I built in VB6 (using many resources I found online) that I use for small projects to work out how to communicate with web serv…
Get people started with the process of using Access VBA to control Excel using automation, Microsoft Access can control other applications. An example is the ability to programmatically talk to Excel. Using automation, an Access application can laun…
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…

760 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

20 Experts available now in Live!

Get 1:1 Help Now