vb.net - Getting items from a folder from SourceForge SVN Project -


itemprop = "text"> getItems () '#' Make a reference to a directory such as the new IO.DirectoryInfo ("https : //ipossum.svn.sourceforge.net/svnroot/ipossum/ ") Dim diar1 IO.FileInfo () = di.GetFiles () Dim dra such as IO.FileInfo '' #list All files in the specified directory in DIRE 1 List box 1. ITEM.Ad (Draw) Next End Function

This is my code and it does not work. Error "" Warning 1 function 'getItems' returns no value on all code paths. A tap reference exception can be the result when the result is used. C: \ Users \ ****** \ AppData \ Local \ Temporary Projects \ iPossum \ Form1.vb 13 5 iPossum ".

How can I do this? Thank you! < / P>

To correct the error you are asking about, just change the word function to sub .

However, after doing this you will not work even if you have the code. You will have a new error, because System.IO directory and file class only work on local file systems . You can use System.Net.HttpWebRequest / System.Net.HttpWebResponse or System.Net.WebClient instead, as you can not reference a remote https location, and this means That's basically starting with scratch with this code.


A very simple example that can work on the basis of https requirement, may be:

  wc using the string as the slow file list as the new webmail file = wc.Download Using String ("https://ipossum.svn.sourceforge.net/svnroot/ipossum/") end "## you will find this on your own  
The file names must be purged by response.

Comments

Popular posts from this blog

Eclipse CDT variable colors in editor -

AJAX doesn't send POST query -

wpf - Custom Message Box Advice -