Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Global Array re dimension inside an action
#3
Solved: 11 Years, 4 Months, 3 Weeks ago
Ok, thanks for the comment. I implemented a workaround to solve it:

in the library file (library.qlf):

Code:
Public dinamicArray()  'define a global dinamic array

Public Function ReDimArray(ArrayName, num)
    Execute "ReDim "&ArrayName&"("&num&")"
End Function

in an action of a qtp test case:
Code:
Call ReDimArray("dinamicArray",0)
Call ReDimArray("dinamicArray",1)
Call ReDimArray("dinamicArray",2)

It is a workaround just to solve the library limitation. Thanks Saket.
Reply


Messages In This Thread
RE: Global Array re dimension inside an action - by martinbedouret - 09-24-2009, 07:03 PM

Possibly Related Threads…
Thread Author Replies Views Last Post
  Read Content inside PDF kotaramamohana 0 1,226 09-02-2020, 05:49 PM
Last Post: kotaramamohana
  Fetching total number of records inside a webtable vidya2k2 2 3,966 06-15-2015, 02:55 PM
Last Post: venkatesh9032
  How to get a specific image inside a webtable grave711 7 9,082 05-29-2012, 10:44 AM
Last Post: grave711
  Global Dictionary digikiwam 1 3,689 04-12-2012, 02:50 PM
Last Post: rajsunder_r
  QTP cannot recognize a web form inside SAP QTP_Gaspar 2 4,338 01-13-2012, 12:19 AM
Last Post: QTP_Gaspar

Forum Jump:


Users browsing this thread: 1 Guest(s)