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

What is event handling in vbscript?

595


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

631


Hello friends..... Can any give the methods for Ms-Access, and Mozilla firefox in Automation Object Model in QTP. Please give me currect answers... if you do not understand my question please don't give answers. Thanking you.

1846


Can u describe what kind of testing are for OTC derivates by banks.

1668


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

1787






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

805


Which conditional statement is the most convenient one to use in the case of multiple conditions in the vbscript language?

520


Which operator can be used to change the value of the operand or change the state of the condition?

573


Mention if qtp generates vbscript code as we record actions, can't it possible to directly write using vbscript code when qtp does the same thing too?

523


What is the technology used by vb script?

539


while using Keyward driven framework in QTPif new requirements are added how to manage it...plz ans

1565


how to write a vb script in QTP for yahoo registration form, i want to check the performance also like performance test, stress, load test like that.

4741


How can constants be declared in the vbscript language?

551


Mention what is byref and byval parameters in vbscript?

577


How are arrays declared in the vbscript language?

537