你如何在vb6中查询一个网站? [英] How do you query a website in vb6?

查看:147
本文介绍了你如何在vb6中查询一个网站?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

从vb6查询网页的功能是什么?

What is the function to query the web from vb6?

我想要做的是从雅虎金融获取数据。例如,此网址返回带有通用电气股息值的csv文件:

What I am trying to do is to get data from yahoo finance. For example this url returns a csv file with the dividend value of General Electric:

http://finance.yahoo.com/d/quotes.csv?s=GE&f=d

我需要在一个函数中运行它,并使该函数返回答案。

I need to run this in a function and have the function return the answer.

推荐答案

说到Excel,你可以创建一个Web查询。在您的情况下,这将是微不足道的。

Speaking of Excel, you can create a web query. Would be trivial in your case.

除此之外,您可以使用 WinHttpRequest 如果你想让你的生活更容易一些,或者如果你没有插入的话。但是,Excel中没有winsock控件。

Other than that, you can use the WinHttpRequest if you want to make your life a bit easier, or a socket if you don't. But then, there's no winsock control in Excel.

这篇关于你如何在vb6中查询一个网站?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆