Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
How to Split an Array
#1
Solved: 10 Years, 9 Months, 2 Weeks ago
I am trying to split an array but I am not sure what string parameter should I use?

arrPV = Split(arrPV,",")

QTP is not liking the first parameter. I can see why since it is the array name: arrPV

What can I use?
Is there a ToString function I can use with arrays?

Code:
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


Thanks!
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,014 01-06-2010, 02:06 AM
Last Post: qatestbrian
  How to use Array of Array in QTP dineshb 1 16,416 12-12-2009, 02:00 AM
Last Post: rdemers25
  Array function for Static Array anbarasu 2 3,684 11-20-2009, 12:18 PM
Last Post: anbarasu

Forum Jump:


Users browsing this thread: 1 Guest(s)