|
-
Feb 23rd, 2004, 04:44 PM
#1
Thread Starter
Lively Member
Sharing variables between Projects ?
I have several Projects in a Solution.
How can i call a variable from other Project..?
..or can i share a variable between two Projects..?
Many thanks for any help....
-
Feb 23rd, 2004, 04:53 PM
#2
Expose it as a public property and get a reference to it. The bigger question is why?
-
Feb 23rd, 2004, 05:07 PM
#3
Thread Starter
Lively Member
Project A is calling Project B and want B to open with dataset automatically filled by certain record (Sql2k)...
Maybe i have wrong approach when concidering shared variable..?
-
Feb 23rd, 2004, 05:26 PM
#4
What types of projects are they (exe,dll)?
A dll would just reference and pass. If you mean exe then you'd need to use remoting, sockets, or write the dataset to xml and pass the file location (or xml string) via the command line param.
-
Feb 23rd, 2004, 05:42 PM
#5
Thread Starter
Lively Member
They're exe projects and Windows Application.
In Project A there is a record ID selected and it should be sent to B to fill a dataset there... What would you recommend..?
Thks this far....
-
Feb 23rd, 2004, 06:10 PM
#6
Are project A and B assumed to be on the same machine? How often will they communicate? Does the communication need to be two-way?
-
Feb 23rd, 2004, 06:22 PM
#7
Thread Starter
Lively Member
A and B exe files are in same folder.
End user starts the communication i.e. it may happend whenever.
Communication needs to be one-way only.
-
Feb 23rd, 2004, 10:39 PM
#8
Passing something via the commandline is probably the easiest route.
-
Feb 25th, 2004, 07:49 AM
#9
PowerPoster
Hi,
Is the following too cumbersome?
In project A
Store the ID in a separate table (which will contain only that information)
In Project B
Get that ID from the table.
Taxes
The more I learn about VB.NET the more I like dBaseIII Plus
The foregoing, whilst believed to be correct, is given without guarantee as to it's accuracy and entirely without recourse. You are required to decide for yourself whether or not it is suitable for your purposes and no liability for loss of any nature can be entertained.
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
|