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

How can constants be declared in the vbscript language?

553


What are the properties of regexp object?

583


Why is the use of exit do or exit for statements within loops discouraged?

571


how to write validation function for date in vb script

2146


Like OPTION EXPLICIT statement what are the other statements used in vbscript and their usage. Please post me all the statements please.

1625






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.

1854


Which keyword is used to declare a variable in the vbscript language?

534


What are the environments supported by vbscript language?

508


Mention what is the use of option explicit in vbscript?

551


What are the data types supported by vbscript?

582


What is event handling in vbscript?

605


how does vb script help in web page designing? explain with example.

1590


How to make sure that items in a wintree are sorted al?

2358


Explain about scrrun.dll?

536


Write program for identifyig duplicates in flight Departing from and Arriving in mercury tours(web application).

1444