Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
[NEED HELP] Currency coverter.
#6
That function will find 2 strings, and read the text in between both of those strings.

For example...

Code:
Dim myWebClient As New WebClient()
Dim myDatabuffer As Byte() = myWebClient.DownloadData("http://www.xe.com/ucc/convert/?Amount=" & NUMBER & "&From=" &EUR&To=USD")
Dim download As String = Encoding.ASCII.GetString(myDatabuffer)

Dim CON As String = GetBetween(download, _
"<td align="right">", "</td>", 0)

That will download the webpage with the results from your search, and extract the string between "<td align="right">" and "</td>", which in this example would be 1 EUR = 1.42440 USD
Reply


Messages In This Thread
[NEED HELP] Currency coverter. - by w00pz - 08-14-2011, 03:40 AM
RE: [NEED HELP] Currency coverter. - by Fragma - 08-14-2011, 04:35 AM
RE: [NEED HELP] Currency coverter. - by w00pz - 08-14-2011, 07:18 AM
RE: [NEED HELP] Currency coverter. - by Fragma - 08-14-2011, 07:25 AM
RE: [NEED HELP] Currency coverter. - by w00pz - 08-14-2011, 07:31 AM
RE: [NEED HELP] Currency coverter. - by Fragma - 08-14-2011, 07:39 AM
RE: [NEED HELP] Currency coverter. - by w00pz - 08-14-2011, 08:01 AM
RE: [NEED HELP] Currency coverter. - by Fragma - 08-14-2011, 08:05 AM
RE: [NEED HELP] Currency coverter. - by w00pz - 08-14-2011, 08:12 AM
RE: [NEED HELP] Currency coverter. - by Fragma - 08-14-2011, 08:13 AM
RE: [NEED HELP] Currency coverter. - by w00pz - 08-14-2011, 08:14 AM
RE: [NEED HELP] Currency coverter. - by Fragma - 08-14-2011, 08:18 AM
RE: [NEED HELP] Currency coverter. - by w00pz - 08-14-2011, 08:19 AM
RE: [NEED HELP] Currency coverter. - by Fragma - 08-14-2011, 08:23 AM
RE: [NEED HELP] Currency coverter. - by w00pz - 08-14-2011, 08:26 AM
RE: [NEED HELP] Currency coverter. - by Fragma - 08-14-2011, 08:36 AM
RE: [NEED HELP] Currency coverter. - by w00pz - 08-14-2011, 08:37 AM
RE: [NEED HELP] Currency coverter. - by Fragma - 08-14-2011, 08:49 AM
RE: [NEED HELP] Currency coverter. - by w00pz - 08-14-2011, 09:02 AM
RE: [NEED HELP] Currency coverter. - by Fragma - 08-14-2011, 09:06 AM
RE: [NEED HELP] Currency coverter. - by BreShiE - 08-14-2011, 10:33 AM
RE: [NEED HELP] Currency coverter. - by Fragma - 08-14-2011, 10:54 AM

Forum Jump:


Users browsing this thread: 12 Guest(s)