vbscript - VB script. Need to run below code in UFT tool -


i have below code , outer array not comparing each value inner array. outer array comparing 1 value inside , moving next value in it.

testdata = {25,27,81,104,33,34,56,78,99,84} testdata1 = {81,104}  = 0 ubound(testdata) - 1  j = 0 ubound(testdata1) - 1     if testdata(i) = testdata1(j)        isfound = true        call db_connectionwisdataflagupdation(squery,para2,para3,para4,svalue)     'c=c+1     exit     end if         'isfound = true       isfound = false next  next 

please me solution on this.

i made couple minor changes code, adjusting indices on loops:

   dim integer    dim j integer    dim isfound boolean     = lbound(testdata) ubound(testdata)       j = lbound(testdata1) ubound(testdata1)           if testdata(i) = testdata1(j)              isfound = true              'call db_connectionwisdataflagupdation(squery, para2, para3, para4, svalue)              msgbox testdata(i)              exit           end if            isfound = false       next    next 

Comments

Popular posts from this blog

node.js - Node js - Trying to send POST request, but it is not loading javascript content -

javascript - Replicate keyboard event with html button -

javascript - Web audio api 5.1 surround example not working in firefox -