06 November 2017

Filter Array value using UFT

a= array("Red","Blue","Yellow")

b = Filter(a,"B")
c = Filter(a,"e")
d = Filter(a,"Y")

Foreach x in b
  MsgBox"Filter 1: " & x 'Return Blue
Next

Foreach y in c
  MsgBox"Filter 2: " & y 'Return Red,Blue,Yellow
Next

Foreach z in d
  MsgBox"Filter 3: " & z 'Return yellow
Next


....

No comments:

Post a Comment

AOM - Automation Object Model

'Creating QuicTest Object Set  qtapp =  createobject ( "QuickTest.Application" ) 'Launching the Application If  qtapp...