首页 诗词 字典 板报 句子 名言 友答 励志 学校 网站地图
当前位置: 首页 > 教程频道 > 开发语言 > PB >

用pb上载 html源文件

2013-01-01 
用pb下载 html源文件在pb的帮助文件中 有关于int对象的geturl获取指定URL的html源代码Returns HTML for th

用pb下载 html源文件
在pb的帮助文件中 有关于int对象的geturl获取指定URL的html源代码

Returns HTML for the specified URL.
servicereference.GetURL ( urlname, data )
但是不会用!主要是参数data不知道怎么用!??
有没有人指点我一下!
[解决办法]
给你段代码

$PBExportHeader$n_cst_internet.sru  
  forward  
  global   type   n_cst_internet   from   internetresult  
  end   type  
  end   forward  
   
  global   type   n_cst_internet   from   internetresult  
  end   type  
  global   n_cst_internet   n_cst_internet  
   
  type   variables  
  string   is_data  
  end   variables  
  forward   prototypes  
  public   function   integer   internetdata   (blob   data)  
  end   prototypes  
   
  public   function   integer   internetdata   (blob   data);is_data   =   string(data)  
  return   1  
  end   function  
   
  on   n_cst_internet.create  
  call   super::create  
  TriggerEvent(   this,   "constructor"   )  
  end   on  
   
  on   n_cst_internet.destroy  
  TriggerEvent(   this,   "destructor"   )  
  call   super::destroy  
  end   on

热点排行