Click here to Skip to main content
15,891,607 members
Home / Discussions / Visual Basic
   

Visual Basic

 
GeneralRe: Please Help!!! Opening Multiple DataAdapters at same time Gives error Pin
Serge Lobko-Lobanovsky28-Jan-04 4:59
Serge Lobko-Lobanovsky28-Jan-04 4:59 
Generalaudio player Pin
nightmare0121-Jan-04 17:00
nightmare0121-Jan-04 17:00 
GeneralRe: audio player Pin
Dave Kreskowiak22-Jan-04 1:19
mveDave Kreskowiak22-Jan-04 1:19 
QuestionOffline database........? Pin
opusxxvii21-Jan-04 16:24
opusxxvii21-Jan-04 16:24 
AnswerRe: Offline database........? Pin
Dave Kreskowiak22-Jan-04 1:17
mveDave Kreskowiak22-Jan-04 1:17 
GeneralRe: Offline database........? Pin
opusxxvii22-Jan-04 8:23
opusxxvii22-Jan-04 8:23 
GeneralRe: Offline database........? Pin
Dave Kreskowiak22-Jan-04 11:31
mveDave Kreskowiak22-Jan-04 11:31 
GeneralRe: Offline database........? Pin
-Dr_X-24-Jan-04 13:41
-Dr_X-24-Jan-04 13:41 
Here is something I was playing around with last week. Give it a try. Just pass a list of comma delimited stock quotes to the function. It will return a list of all the quotes with each item having the details of the stock in a comma delimited format: symbol, last trade time, last value, open value, PE, etc...
The downside it is not in realtime.

Public Function GetQuote(ByVal symbols As String) As StockDetails
Dim url As String = "http://quote.yahoo.com/d/quotes.csv?s=" & symbols & "&d=t&f=sl1d1t1c1ohgvj1pp2wern" 'stores url of yahoo quote engine
Dim buffer As String
Dim webRequest As WebRequest
Dim webResponse As WebResponse

webRequest = HttpWebRequest.Create(url)
webResponse = webRequest.GetResponse()

Dim sr As StreamReader = New StreamReader(webResponse.GetResponseStream, System.Text.Encoding.ASCII)

buffer = sr.ReadToEnd()
sr.Close()

Return buffer

End Function

This should be much easier than obtaining values from an existing web page.

Michael
GeneralCorrupt Text Files Pin
Barry Etter21-Jan-04 13:11
Barry Etter21-Jan-04 13:11 
GeneralRe: Corrupt Text Files Pin
Mike Ellison21-Jan-04 14:39
Mike Ellison21-Jan-04 14:39 
GeneralRe: Corrupt Text Files Pin
Dave Kreskowiak22-Jan-04 1:02
mveDave Kreskowiak22-Jan-04 1:02 
Generallistview + selecteditem Pin
Anonymous21-Jan-04 11:17
Anonymous21-Jan-04 11:17 
GeneralRe: listview + selecteditem Pin
Dave Kreskowiak22-Jan-04 0:57
mveDave Kreskowiak22-Jan-04 0:57 
GeneralLooking for IT Professionals on H1B Visa Transfer/Faster GreenCard Processing Pin
Keith_00221-Jan-04 10:42
Keith_00221-Jan-04 10:42 
GeneralRe: Looking for IT Professionals on H1B Visa Transfer/Faster GreenCard Processing Pin
keshavcode21-Jan-04 14:59
keshavcode21-Jan-04 14:59 
GeneralFirewall HELP Pin
zoodayz21-Jan-04 9:33
zoodayz21-Jan-04 9:33 
GeneralRe: Firewall HELP Pin
Dave Kreskowiak22-Jan-04 0:50
mveDave Kreskowiak22-Jan-04 0:50 
GeneralExit Code From VB application Pin
ANORTON21-Jan-04 5:27
ANORTON21-Jan-04 5:27 
GeneralRe: Exit Code From VB application Pin
Dave Kreskowiak21-Jan-04 6:20
mveDave Kreskowiak21-Jan-04 6:20 
GeneralRe: Exit Code From VB application Pin
ANORTON21-Jan-04 7:51
ANORTON21-Jan-04 7:51 
Generalclient server Pin
noureddine01010121-Jan-04 5:08
noureddine01010121-Jan-04 5:08 
GeneralRe: client server Pin
Mike Ellison21-Jan-04 15:02
Mike Ellison21-Jan-04 15:02 
QuestionHow to select an Item in a Listview Pin
code_gopher21-Jan-04 4:52
code_gopher21-Jan-04 4:52 
AnswerRe: How to select an Item in a Listview Pin
Mike Ellison21-Jan-04 14:54
Mike Ellison21-Jan-04 14:54 
Generalconnecting to access project Pin
Member 83296121-Jan-04 4:47
Member 83296121-Jan-04 4:47 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.