How do you return a value for an array.



How do you return a value for an array...

Answer / sandeep

If you want to return ARRAY from function then simple trick
is

functioname = name_of_array

This statement will force function to return array.

Array may be of any size.

Is This Answer Correct ?    1 Yes 0 No

Post New Answer

More QTP Interview Questions

What type of VB script u had done in expert view?

1 Answers  


How to switch between browser tabs? )moving from one tab to another tab)

1 Answers   CTS,


i have qtp 9.5 ver software.but i don't know the license key. if anyone have license key please send it to my personal mail id(munir.reddy@yahoo.com

2 Answers  


Hi, is it possible for recording shortcut key during record session? The application on which I am working is web based application. This application has several shortcut key associated with menu option. I have succesfully recorded all menu option but unable to record shortcut key.

1 Answers  


Key word driven framework

0 Answers   Wipro,






Hi Friends this is kumar i would like to request to all of you ,please help me to explain real time project with using qtp scripts i know basics of qtp but it won't workout on interviews,pls help awating to reply.

0 Answers   SoftTech,


If I change the object name in one action will it be updated in all the actions? Or not?

0 Answers  


Explain QTP using different development techniques ?

0 Answers  


What are the different ways to invoke an application using QTP?

0 Answers  


hi testers,one script has three actions , at the of running three actions are running , how to set run only perticular action and what is the use of split the action? when it will be useful?

3 Answers   Syntel,


who is developed QTP ? is it from Mecury or HP

2 Answers  


when I try to run below script in QTP "totalPages" value is 2. But i am getting error message (Type mismatch: 'totalPages' Line (): "For i=1 to totalPages".) totalPages=Browser("Name:=User").Page("Title:=User").WebElem ent("innertext:=of.*").GetROProperty("InnerText") msgbox totalPages For i=1 to totalPages rnum=Browser("Name:=User").Page("Title:=User").WebTa ble("column names:=User Name;ID;Last Name;First Name").GetRowWithCellText("store4") If rnum>0 Then r=rnum Exit for End If Browser("Name:=User").Page("Title:=User").WebElement ("html tag:=A","x:=471").Click MsgBox "Exit" Next

1 Answers  


Categories