Calling constants in VB
So i found my self needing to call on constants from another vb file. The file name was “core.vb”, now i needed to call a public constant and a public function. To do so, you can just first call the project name then call the file name and lastly call the constant or function.
// for a constant
<%=MyProject.core.MyConst %>
// for a function
<%=MyProject.core.MyFunction() %>
There is no need to “include” the vb file, .NET will know what you need and get it.


