Nidhi,
I think this will work for you.

public function tests(x)
x= array(1,2,3,4,5)

End function

Call tests(x)
msgbox x(1)






Regards

Shashidhar
+91 -8125564879
[email protected]





On Wed, Mar 14, 2012 at 11:54 AM, Nidhi Sharma <[email protected]>wrote:

> Hi,
>
> Please suggest me that how can I make a variable to return value in Array
> form.
>
> I have a function which is adding multiplesheets at runtime and the
> variable X is containing the sheet names.
>
> Now when i tried to use the same variable in other function ,it returns
> only 1 sheet name at index 0 of an array,but i want to have all the
> sheetnames collectively in that variable.
>
> I have tried making the function to return value in array form but
> unfortunately it returns only current added sheet name overiding it with
> the previous value.
>
> For eg:Variable X (0)="Setup Ba"
>
> Next time when the same function executes,it overrides the value at the
> same location like:
> Variable X(0)="Setup Su"
>
> Please let me if any one can help me in this.
>
> Thanks,
> Nidhi
>
> --
> You received this message because you are subscribed to the Google
> "QTP - HP Quick Test Professional - Automated Software Testing"
> group.
> To post to this group, send email to [email protected]
> To unsubscribe from this group, send email to
> [email protected]
> For more options, visit this group at
> http://groups.google.com/group/MercuryQTP?hl=en
>



--

-- 
You received this message because you are subscribed to the Google
"QTP - HP Quick Test Professional - Automated Software Testing"
group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/MercuryQTP?hl=en

Reply via email to