Peter Chan
asked on
Share constant variable
Hi,
within the same solution, I've declared Module to put value to constant variable like
I do want to share one constant variable on one shared DLL library, to other project/solution, which is referring to such DLL file. How?
within the same solution, I've declared Module to put value to constant variable like
Public Module Constants
Public ProductPhotoFolder As String = "F:\ProductImages\"
...
but how to refer to such variable? I do want to share one constant variable on one shared DLL library, to other project/solution, which is referring to such DLL file. How?
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
Thanks all.
I do declare it like
https://dl.dropboxusercontent.com/u/40211031/tt389.jpg
how to refer to such constant, within other projects on the same solution?
I do declare it like
Public Module Constants
Public TOOLBAR As String = ""
...
while such .vb file is existing within the solution likehttps://dl.dropboxusercontent.com/u/40211031/tt389.jpg
how to refer to such constant, within other projects on the same solution?
ASKER
The .vb file is existing within one project on the solution (shown in above)
Dim someOtherString As String = ProductPhotoFolder
or should there be more than one variable called ProductPhotoFolder then qualify the name explicitly:
Dim someOtherString As String = Constants.ProductPhotoFold