Solved

pass variable between projects

Posted on 1998-06-22
7
201 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
Free Tool: SSL Checker

Scans your site and returns information about your SSL implementation and certificate. Helpful for debugging and validating your SSL configuration.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

 

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

Free Tool: ZipGrep

ZipGrep is a utility that can list and search zip (.war, .ear, .jar, etc) archives for text patterns, without the need to extract the archive's contents.

One of a set of tools we're offering as a way to say thank you for being a part of the community.

Question has a verified solution.

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

There are many ways to remove duplicate entries in an SQL or Access database. Most make you temporarily insert an ID field, make a temp table and copy data back and forth, and/or are slow. Here is an easy way in VB6 using ADO to remove duplicate row…
Introduction While answering a recent question about filtering a custom class collection, I realized that this could be accomplished with very little code by using the ScriptControl (SC) library.  This article will introduce you to the SC library a…
As developers, we are not limited to the functions provided by the VBA language. In addition, we can call the functions that are part of the Windows operating system. These functions are part of the Windows API (Application Programming Interface). U…
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…

790 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