XML file access from module

Crono

Member
Joined
Dec 9, 2002
Messages
6
I found that if I add an XML file to a win app, it becomes accessible as a XMLDocument object from myproject.xmlfile.

It works in a class module, but not in a code module. So how can I access it from a code module?
 
Why are you using a code module?

Bear in mind that any answer you give will result in "you dont need to use a code module for this".

Try it in a static member of a class, and then if it still doesnt work, give us code, error, line number etc.
 
My application starts at Sub Main, thats why I have a module. :)

Thats okay anyway, Ive found a way around. Thanks!
 
Sub Mains dont have to exist in modules :)

Code:
Friend Class Moo
  Public Shared Sub Main()
  End Sub
End Class
 
Back
Top