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 write basic programs in VB Script like addition,
multiplication?

Answer Posted / pravati

Call sum(x,y)
Function sum(x,y)
x=cint(inputbox ("enter a no"))
y=cint(inputbox ("enter a no"))
z=inputbox("enter the value")

Select Case z
Case "+" msgbox x+y
Case "-" msgbox x-y
End Select
End Function

Is This Answer Correct ?    1 Yes 1 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Why is error handling required?

1072


What is the use of option explicit statement?

1028


give me any information abou vb script books learn quckly

2260


How to identify column in VSFlexgrid? My VSFlexgrid window is identified as 'Active X Control'

3786


Mention what is byref and byval parameters in vbscript?

1047


Explain few date functions in vbscript?

1114


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

3727


How can you fetch the value of a cookie?

1059


What is the use of the instr function?

1100


Explain the string concatenation function in vbscript?

1096


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

2315


why variable name should not exceed 255 characters?

2274


Explain about filter expression?

1056


Compare java script and vb script?

1135


Which operator can be used to check if two numbers are equal or not in vbscript?

1210