title: QTP: How can I return multiple Values from a Function
body: <p>I'm trying to write a function which can return multiple values from a Function which is having 2 arguments.</p>
  
  <p>eg: </p>
  
  <pre><code>function sample_function(arg1,arg2)
      ''#Some code.................
  
      passenger = list1(0)
      name1 = list1(1)
      age1 = list1(2)
      seatNumber = list1(3)
      ''#This is an Incomplete function...    
  end function sample_function
  </code></pre>
  
  <p>Here this function named sample_function has 2 argument named arg1, arg2. When i call this function in my Driver Script like value = sample_function(2,Name_person), this function should return me passenger, name1,age1,seatNumber values.</p>
  
  <p>How can i achieve this?</p>
  
  <p><strong>EDIT (LB):</strong> QTP uses VBScript to specify the test routines, so I retagged this to VBScript, VB because the solution is probably within VBScript.</p>