How to return a value from function...?

you should not tell msgbox, print.. etc.,

Answer Posted / selva

yes function can return multiple vales.
Public Function fn()
Dim arr(1)
arr(0)=23
arr(1)=67
fn=arr
End Function
a=fn

Is This Answer Correct ?    0 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Explain the operator precedence in vb script?

656


how to check whether link is disabled in QTP??

5631


Explain the adodb.stream class?

547


why do u choose to go for testing why cant for devoloping

1594


How to capture a runtime error in vbscript?

630






Why to use option explicit in vb script?

600


What is the difference between javascript and vbscript?

534


give me any information abou vb script books learn quckly

1661


Explain about operator precedence in vb script?

577


Mention what is select case statement?

548


In html file what is an ideal position to include vbscript?

814


Hi Friends Rajendra this is bhavani prasad, iam working Hyderabad. i faced one problem with qtp recording mode i.e in my application there is 100 records first we click the first record that record will be jumped to next session and 99 records will there stop the recording and run the same script .Run this script qtp does not identify the records. So plz tell me what is the solution.

1574


What is dictionary object in vbscript? Explain?

628


Hello friends..... Can any give the methods for Ms-Access, and Mozilla firefox in Automation Object Model in QTP. Please give me currect answers... if you do not understand my question please don't give answers. Thanking you.

1852


How to Enter Values on the Command promt using VB script

1534