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

Explain sga memory structures?

1024


what is diff between static and dynaic arrys?

2147


what is the features of visual basic?

2139


what is the use of QCUtil? explain with one example?

7056


How are values assigned to string type and numeric type variables?

995


How to take whole text output from screen of Bitmap Application.

2360


Mention what is byref and byval parameters in vbscript?

1008


How will you reverse a string in vbscript?

1144


Explain what is loose binding? Why is it not a good practice to use it?

1071


Is vbscript language a case-sensitive language and what does it mean?

1008


How will you get the largest subscript of an array in vbscript?

1163


1. How do declare public variable in vb scripts?

2115


What purpose does ‘on error resume next’ serves?

1064


What are string functions in vbscript?

1164


How to throw an error in vbscript?

1141