Bill,
In addition to the other comments. You can add a new "code file" to your
project, such as "myenums.vb" and add all your enums to this "code file".
Creating a class library (.dll) with the above "code file" will allow you to
share the enum between projects. If you only have a single project using a
code file may be easier. Note you can use "Link file" to create a link to a
single file from multiple projects, which avoid the class library (.dll)
altogether.
In VS.NET 2003:
- To add a "code file" use "Project - Add New Item - Code File".
- To link to a file, use "Project - Add Existing Item - Link File" (Link
file is on the drop down next to the Open button).
Hope this helps
Jay
"bill salkin" <an*******@discussions.microsoft.com> wrote in message
news:04****************************@phx.gbl...
I have several lengthly VB.NET Enums that I'd like to
store in seperate files (not in the body of my main
routine.) I hoped that VB.NET had an "Include" statement
(like C) who presence indicates the content of a file is
inserted at this point in the code. But I couldn't find a
VB.NET "Include". Can I do what I want in VB.NET?
TIA,
Bill