Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
How to Split an Array
#4
Solved: 11 Years, 3 Months, 3 Weeks ago
Code:
createSingleObj("Browser","CreationTime:=0,title:=AOL.*")

Public Function createSingleObj(t,arrPV)
        Set o = Description.Create
        o("micclass").Value = t
        arrPV = Split(arrPV,",")
        For iLoop = 0 to UBound(arrPV)
                Prop= Split(arrPV(iLoop),":=")(0)
                Val= Split(arrPV(iLoop),":=")(1)
                o(Prop).Value = Val
        Next
        Set createSingleObj = o
End Function

Please check the format. "CreationTime:=0,title:=AOL.*"
This is how you need to send your property value pairs
Reply


Messages In This Thread
How to Split an Array - by Arena - 04-05-2012, 02:16 AM
RE: How to Split an Array - by vIns - 04-05-2012, 05:45 AM
RE: How to Split an Array - by Arena - 04-05-2012, 08:10 AM
RE: How to Split an Array - by vIns - 04-05-2012, 08:16 AM
RE: How to Split an Array - by Arena - 04-05-2012, 09:57 AM
RE: How to Split an Array - by vIns - 04-05-2012, 11:01 AM
RE: How to Split an Array - by Arena - 04-05-2012, 01:56 PM

Possibly Related Threads…
Thread Author Replies Views Last Post
  Is the split array method the correct tool for the job? qatestbrian 0 2,091 01-06-2010, 02:06 AM
Last Post: qatestbrian
  How to use Array of Array in QTP dineshb 1 16,624 12-12-2009, 02:00 AM
Last Post: rdemers25
  Array function for Static Array anbarasu 2 3,821 11-20-2009, 12:18 PM
Last Post: anbarasu

Forum Jump:


Users browsing this thread: 1 Guest(s)