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

How to add actions in driver script to run those actions in QTP?

1948


How will you convert a string to lower case string using vbscript?

1023


Mention what is vbscript?

1128


why do u choose to go for testing why cant for devoloping

2069


Which in-built functions are used to convert the specified expression in the form of date and string in the vbscript language?

1011


How to assign a numeric value to a variable?

1126


What is the difference between javascript and vbscript?

1179


We have 1 web page with names column. I am giving the Service Providers1,2,3.... @ that time dynamically some no of names are displaying in the webpage and The Pop up windows are opening(No.of Pop Up windows=No.of Names). The names may be diffar for each and every Service Provders (Dynamically) How can we handle the Dynamic values?

2205


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

3025


What are the uses of vb script?

1041


Explain the filter expression?

1096


What are the environments supported by vbscript language?

939


Explain some uses of vb script?

981


How to pass argument by reference to a function in vbscript?

1068


I have attended Anovatek Software QTP interview. They will give us computer and one web based application with QTP. We have to automate some records (already updated records or new records) using QTP Data driven testing. But we should use for loop? Can any one know how to do data driven testing using For loop?

1994