Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...

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

when we use filter funtiom invb script(QTP)

2833


How will you convert a given number to long in vbscript?

933


What is vbscript procedures?

1192


regular expression that will recognize a browser as long as its name property starts with mybrowser

2282


Which in-built function is used to format the number in the vbscript language?

1049


hi Set myobj=Description.Create() myobj("type").value="submit" myobj("name").value="google search" myobj("html tag").value="button" browser("title:=google").page("title:=google").webButton (myobj).Click i was running above code in one weak back it was working fine i got result,again i opened after few days ,again i was trying to run the code it shows run time error in last line of my code ,why ?pls answer my question?

2226


Explain about filter expression?

1056


why variable name should not exceed 255 characters?

2274


Illustrate briefly about the different types of statement

2549


how to set one column as primary key in QTP and fetch values accordingly

2361


What is difference between vbscript and vba?

1284


How to write VB script for login module?

3228


Explain a few date functions in vbscript

1026


How will you get the natural logarithm of the given number in vbscript?

1111


How can you create a file object to work with the files in the vbscript language?

995