How to return a value from function...?

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

Answer Posted / rishi agrawal

Function MyFunction(Num)

InputBox("What is your name?","My Input")
'Code for return value from function
MyFunction= Num + 1

End Function

Is This Answer Correct ?    3 Yes 2 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Write a vbscript procedure that converts feet to inches. Hint: there are 12 inches in a foot?

799


Can u describe what kind of testing are for OTC derivates by banks.

1873


What is the difference between function and procedure?

831


How to scroll down a page while recording in qtp. suggest me any method apart from low level recording.

2788


What are class properties?

869


hi i am trying for testing job for 3+ experience(fake) can u suggest me what type of projects i can keep in my resume and how much of knoeledge i should have abt that project.thnks in advance.urgt plz

2780


Write a code to print numbers from 5 to 0?

922


What are the advantages of vbscript?

842


Which operator is used to perform the comparison among 2 operands in the vbscript language?

707


Mention what is the main difference between function and sub-procedure?

755


Which operator can be used to do an xor operation in vbscript?

960


while using Keyward driven framework in QTPif new requirements are added how to manage it...plz ans

1794


what is the difference between modular and data and keyword driven framework

1944


What is the use of the date function in the vbscript language?

770


Which loop is used in case of arrays in the vbscript language?

708