Link to home
Start Free TrialLog in
Avatar of Peter Chan
Peter ChanFlag for Hong Kong

asked on

Share constant variable

Hi,
within the same solution, I've declared Module to put value to constant variable like

Public Module Constants
    Public ProductPhotoFolder As String = "F:\ProductImages\"
	...

Open in new window

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
Avatar of Ryan Chong
Ryan Chong
Flag of Singapore image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
To refer to it elsewhere:
        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.ProductPhotoFolder
Avatar of Peter Chan

ASKER

Thanks all.
I do declare it like
Public Module Constants
    Public TOOLBAR As String = ""
	...

Open in new window

while such .vb file is existing within the solution like

https://dl.dropboxusercontent.com/u/40211031/tt389.jpg

how to refer to such constant, within other projects on the same solution?
The .vb file is existing within one project on the solution (shown in above)