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
What are the valid scopes of a variable in vbscript?
what is inner join? what is outer join? what is a constraint? tell me about rdbms? tell me about acid properties?
regular expression that will recognize a browser as long as its name property starts with mybrowser
Mention what is select case statement?
what is resorceallocation
What is the use of the ‘open’ method to work with the database in the vbscript language and what connection string is passed in the same and what is its usage?
What's the difference between vbscript and vb.net?
What are the 2 ways to pass a value to the function?
How to Enter Values on the Command promt using VB script
Write a vbscript procedure that converts feet to inches. Hint: there are 12 inches in a foot?
When are redim statement and preserve keyword used in the vbscript language?
1. How to handle object implementation change in DP for Ex: i have login page with username,pasword (editboxes),login,cancel(buttons). Here i written DP code for login page with the help properties. My questions: 1.If properites are changing dynamically i will do (i want code for that) 2.if objects are changed dynamcally i will do (i wnat code for that)
hi what is called GUI in QTP 8.2 and how can we test the apllication using GUI?
Write a test case using Test if the images,a particular test exists,check if the page links match,page response is within a certain range,parameterization of the test,the test should comprise of actions,the test should use a custom function,the test should use global repository
How will you get the largest subscript of an array in vbscript?