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 Pass Multiple values in functions by using vb script?

Function value(arg1,arg2)

N1=arg1+arg2
N2=arg1-agr2
N3=arg1*agr2
N4=arg1/arg2

Value= How to pass ?

End Function

Answer Posted / lak

Function value(arg1,arg2,N)

N1=arg1+arg2
N2=arg1-arg2
N3=arg1*arg2
N4=arg1/arg2

Value= N

End Function

call value(10,10,N1)
msgbox N1
call value(10,10,N2)
msgbox N2
call value(10,10,N3)
msgbox N3
call value(10,10,N4)
msgbox N4

Is This Answer Correct ?    1 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What are the 2 ways in which a variable can be declared in the vbscript language?

1068


Mention the rules for using option explicit statement?

1002


What is the difference between vb debugger and the script debugger?

1147


What is the use of the instr function?

1064


What is vbscript procedures?

1146


1. How do declare public variable in vb scripts?

2136


Why is error handling required?

1029


hi what is called GUI in QTP 8.2 and how can we test the apllication using GUI?

2351


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

3028


Explain the extension .hta?

970


why variable name should not exceed 255 characters?

2236


please can you help me to get a code of flames using a visual basic 6

1789


Explain about tristate constants in vbscript?

1090


i need to sort the data using qtp script for this how i need to write a qtp script

3696


There are 5 web pages.write a script to click the button on 4th web page.

3418