zjviolet 发表于 2004-9-17 14:50:25

求助,循环

我录的是这样的,就是删除一条记录的操作,要怎么样让他循环多次呢。:$

   sub main
    'Initially Recorded: 2004-9-1713:32:17
    'Script Name: 1

    Window SetContext, "Caption=Newtouch ONE! - Microsoft Internet Explorer", ""
    Browser SetFrame,"Type=HTMLFrame;HTMLId=Main_frame",""
    HTMLTable Click, "Type=HTMLTable;Index=3", "Row=2;Col=5"
    Browser NewPage,"",""
    PushButton Click, "Type=PushButton;Name=delB"
   
    Window SetContext, "Caption=Microsoft Internet Explorer", ""
    PushButton Click, "Text=确定"


    End Sub

hxf 发表于 2004-9-17 17:11:35

你写一个循环语句
dim i as interger
for i=1 to n
操作
next i

zjviolet 发表于 2004-9-20 09:49:35

哦,谢谢
看来我之前漏掉了一点东东,难怪出问题。
页: [1]
查看完整版本: 求助,循环