Module/Class wont fetch
Module/Class wont fetch
Module/Class wont fetch
Module/Class wont fetch
Module/Class wont fetch
Module/Class wont fetch Module/Class wont fetch Module/Class wont fetch Module/Class wont fetch Module/Class wont fetch Module/Class wont fetch Module/Class wont fetch Module/Class wont fetch
Module/Class wont fetch Module/Class wont fetch
Module/Class wont fetch
Go Back  Xtreme Visual Basic Talk > > > Module/Class wont fetch


Reply
 
Thread Tools Display Modes
  #1  
Old 08-06-2011, 03:05 PM
herko125 herko125 is offline
Newcomer
 
Join Date: Aug 2011
Posts: 1
Question Module/Class wont fetch


Hi! I got a problem with this piece of code
HTML Code:
Public Sub Main_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load

        Dim dataLoad As XDocument = XDocument.Load("config.xml")
        For Each data As XElement In dataLoad...<data>
            Dim name As String = data.Element("name")
            Dim site As String = data.Element("site")
            Dim news As String = data.Element("news")
            Dim register As String = data.Element("register")
            Dim update As String = data.Element("update")
            Dim skipupdate As String = data.Element("skipupdate")
            Dim run As String = data.Element("run")

            Me.Text = name + Me.Text
            webNews.Url = New Uri(news)
        Next

    End Sub
The problem is that i want to move the >>dim dataLoad...<< to a different file (a config file), but when i move it, i get bunch of errors. And i do call the class/module but still it wont work.

Also the other question is how to download multiple files from a server, so when they are downloaded they stay/ are placed in the corresponding folder.

Thanks and i apologize for the my ignorance.
Reply With Quote
  #2  
Old 11-15-2011, 04:32 AM
slingblade22 slingblade22 is offline
Newcomer
 
Join Date: Oct 2009
Posts: 4
Default

Can we see the code where you moved it to another file (to see how you are doing it).

Also what exactly are the errors? Saying you get a bunch of errors means nothing to someone trying to debug you issue without knowing what they are.
Reply With Quote
  #3  
Old 11-15-2011, 06:35 AM
jwshepherd jwshepherd is offline
Freshman
 
Join Date: May 2009
Location: West Texas
Posts: 45
Default

you would need to make a seperate sub, no formload for the data to be passed back to the routine.
Code:
 Public sub ParseData( data as XDocument)
'Parse Routine
End Sub
Reply With Quote
Reply


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Forum Jump

Advertisement:





Free Publications
The ASP.NET 2.0 Anthology
101 Essential Tips, Tricks & Hacks - Free 156 Page Preview. Learn the most practical features and best approaches for ASP.NET.
subscribe
Programmers Heaven C# School Book -Free 338 Page eBook
The Programmers Heaven C# School book covers the .NET framework and the C# language.
subscribe
Build Your Own ASP.NET 3.5 Web Site Using C# & VB, 3rd Edition - Free 219 Page Preview!
This comprehensive step-by-step guide will help get your database-driven ASP.NET web site up and running in no time..
subscribe
Module/Class wont fetch
Module/Class wont fetch
Module/Class wont fetch Module/Class wont fetch
Module/Class wont fetch
Module/Class wont fetch
Module/Class wont fetch Module/Class wont fetch Module/Class wont fetch Module/Class wont fetch Module/Class wont fetch Module/Class wont fetch Module/Class wont fetch
Module/Class wont fetch
Module/Class wont fetch
 
Module/Class wont fetch
Module/Class wont fetch
 
-->