vbs获取雅虎汇率

vbs获取雅虎汇率,第1张

概述vbs获取雅虎汇率

下面是内存溢出 jb51.cc 通过网络收集整理的代码片段。

内存溢出小编现在分享给大家,也给大家做个参考。

Function bytes2bstr(vin)	strreturn = ""	for i = 1 to lenb(vin)		thischarcode = ascb(mIDb(vin,i,1))		if thischarcode < &h80 then			strreturn = strreturn & chr(thischarcode)		else			nextcharcode = ascb(mIDb(vin,i+1,1))			strreturn = strreturn & chr(clng(thischarcode) * &h100 + cint(nextcharcode))			i = i + 1		end if	next	bytes2bstr = strreturnEnd FunctionFunction GetURL(url)	Set RetrIEval = CreateObject("Microsoft.XMLhttp")	With RetrIEval		.Open "GET",url,False		.Send		GetURL = bytes2bstr(.responsebody)		if len(.responsebody)<2 then			strContent = "远程通讯故障!"			Call LogTo@R_403_6852@(strContent,1)		response.end		end if	End With	Set RetrIEval = nothingEnd Function'========以上为自定义函数========s1 = inputBox("原始货币代码:","请输入原始货币代码","USD")s2 = inputBox("目标货币代码:","请输入目标货币代码","CNY")s = s1&s2url = "http://download.finance.yahoo.com/d/quotes.csv?e=.csv&f=sl1d1t1&s="&s&"=x"if s1<>"" and s2<>"" Then	huilv = GetURL(url)	MsgBox huilvEnd if

以上是内存溢出(jb51.cc)为你收集整理的全部代码内容,希望文章能够帮你解决所遇到的程序开发问题。

如果觉得内存溢出网站内容还不错,欢迎将内存溢出网站推荐给程序员好友。

总结

以上是内存溢出为你收集整理的vbs获取雅虎汇率全部内容,希望文章能够帮你解决vbs获取雅虎汇率所遇到的程序开发问题。

如果觉得内存溢出网站内容还不错,欢迎将内存溢出网站推荐给程序员好友。

欢迎分享,转载请注明来源:内存溢出

原文地址: https://outofmemory.cn/langs/1275316.html

(0)
打赏 微信扫一扫 微信扫一扫 支付宝扫一扫 支付宝扫一扫
上一篇 2022-06-08
下一篇 2022-06-08

发表评论

登录后才能评论

评论列表(0条)

保存