PB中打开指定网页的方法
1、使用ie打开
Inet linet_base
this.GetContextService("Internet", linet_base)
linet_base.HyperlinkToURL(ls_url)
2、使用shRunDefltBrowser函数可以调用缺省的浏览器,打开指定页面
函数声明:function long shRunDefltBrowser(string szUrl) library "pbvm90.dll"//这是PB9的
调用方法:shRunDefltBrowser("community.csdn.net")
3、使用ShellExecute打开默认浏览器
string ls_ferryman,ls_null,ls_oper ls_ferryman = "http://pbsite.yeah.net/" setnull(ls_null) ls_oper = "open" ShellExecute(handle(parent),ls_oper,ls_ferryman,ls_null,ls_null,0)
每天进步一点点

浙公网安备 33010602011771号