现在的位置: 首页 > 综合 > 正文

Rational Robot中自动进行100次操作

2013年10月22日 ⁄ 综合 ⁄ 共 249字 ⁄ 字号 评论关闭
Rational Robot中的SQA Basic与Basic语言极为类似,下面是一个for循环的例子,其中cstri()函数把整数转换成字符串。
Sub Main
    Dim Result As Integer
    Dim i As Integer
    ……
   
     'begin of for loop
     for i=1 to 100 step 1 
     ……
     InputKeys cstr(i*3) '这个地方设置输入值为I*3.
     ……
    next
    'end of for loop
    ……
End Sub

抱歉!评论已关闭.