Dec 9, 2002 #1 C 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?
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?
Dec 9, 2002 #2 Divil Well-known member Joined Nov 17, 2002 Messages 2,748 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.
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.
Dec 9, 2002 #3 C Crono Member Joined Dec 9, 2002 Messages 6 My application starts at Sub Main, thats why I have a module. Thats okay anyway, Ive found a way around. Thanks!
My application starts at Sub Main, thats why I have a module. Thats okay anyway, Ive found a way around. Thanks!
Dec 9, 2002 #4 Divil Well-known member Joined Nov 17, 2002 Messages 2,748 Sub Mains dont have to exist in modules Code: Friend Class Moo Public Shared Sub Main() End Sub End Class
Sub Mains dont have to exist in modules Code: Friend Class Moo Public Shared Sub Main() End Sub End Class
Dec 9, 2002 #5 C Crono Member Joined Dec 9, 2002 Messages 6 ... ho! Sorry, this is my first time with VB.NET.