找回密码
 加入
搜索
查看: 1355|回复: 1

数据输出问题

[复制链接]
发表于 2008-11-3 09:42:46 | 显示全部楼层 |阅读模式
#include <INet.au3>

$html=_INetGetSource("http://trading.5173.com/冒险岛.shtml?gm=1114&ga=1116&gs=1117&bt=682b60e289f045339cae13d208023fc6")
$nOffset = 1
While 1

        $array = StringRegExp($html,"\d*\.\d*[/][^\x00-\xff]*", 1, $nOffset)
       
        If @error = 0 Then
                $nOffset = @extended
        Else
                ExitLoop
        EndIf
        for $i = 0 to UBound($array) - 1               
                MsgBox(0,"",$array[$i])               
        Next
WEnd
这段代码获得的数据可以直接输入到一个列表框么?该用什么函数?

[ 本帖最后由 amgloon 于 2008-11-3 10:32 编辑 ]
发表于 2008-11-3 10:23:06 | 显示全部楼层

#include <INet.au3>

$html=_INetGetSource("http://trading.5173.com/冒险岛.shtml?gm=1114&ga=1116&gs=1117&bt=682b60e289f045339cae13d208023fc6")
Local $nOffset = 1, $t = ''
While 1

        $array = StringRegExp($html,"\d*\.\d*[/][^\x00-\xff]*", 1, $nOffset)
        
        If @error = 0 Then
                $nOffset = @extended
        Else
                ExitLoop
        EndIf
        for $i = 0 to UBound($array) - 1                
               $t &= $array[$i] & @CRLF
        Next
WEnd
MsgBox(64,'',$t)
您需要登录后才可以回帖 登录 | 加入

本版积分规则

QQ|手机版|小黑屋|AUTOIT CN ( 鲁ICP备19019924号-1 )谷歌 百度

GMT+8, 2024-5-2 12:01 , Processed in 0.067361 second(s), 19 queries .

Powered by Discuz! X3.5 Licensed

© 2001-2024 Discuz! Team.

快速回复 返回顶部 返回列表