CHPP Development/VB.NET/: Difference between revisions

From Hattrick
Jump to navigationJump to search
SassineFC (talk | contribs)
categorized
RebelClown (talk | contribs)
m Category
Line 12: Line 12:
  End Function
  End Function


[[Category:CHPP XML Pages]]
[[Category:Programming Languages|VB.NET]]

Revision as of 17:40, 23 March 2007

Code #1: Getting the recommended server


Protected Function Get_Recommended_Server()
   Dim xmlds As New System.Data.DataSet
   Dim xmlTable As New System.Data.DataTable
   Dim xmldr As System.Data.DataRow()
   xmlds.ReadXml("http://www.hattrick.org/common/menu.asp?outputType=XML")
   xmlTable = xmlds.Tables("HattrickData")
   xmldr = xmlTable.Select(Nothing, Nothing, Data.DataViewRowState.CurrentRows)
   Return (xmldr(0)("RecommendedURL").ToString)
End Function