how to write basic programs in VB Script like addition,
multiplication?
Answers were Sorted based on User's Feedback
Answer / dipanjan
Dim a, b, c, d As Integer
a = TextBox1.Text
b = TextBox2.Text
c = TextBox3.Text
d = Int(a) + Int(b) + Int(c)
MsgBox (d)
for multiplication:
d = a * b * c
MsgBox (d)
| Is This Answer Correct ? | 6 Yes | 8 No |
Answer / jansheer
dim a
dim b
dim c
a=cintinputbox("enter first no")
b=cintinputbox("enter second no")
c=a+b
msgbox("sum of "&a&"and"&b&"is")
| Is This Answer Correct ? | 4 Yes | 16 No |
What is the use of "Option Explicit"?
Which object is used to work with the excel sheets in the vbscript language and what statement is used to create this object?
Write a program to display the numbers in the below format using for loops? 1 2 3 4 5 6 7 8 9 10 11 12 and Write a program to display the numbers in the below format using for loops. 1 2 3 4 5 6 7 8 9 10
Explain about tristate constants in vbscript?
I need help to write a function in vbscript to click on a link. That link looks like a tab. There are 6 tabs. When I click on 1 tab it should show as "on". when I spy the class property is on. But for the one which is not clicked the class property is blank. I have objects created in our custom object repository. Please give me some idea.
What is Querystring collection?
Explain the adodb.stream class?
I have an excel sheet with multiple ID's in a column. Now i need fetch those ID's in an application and check whether if it already exist in the DB. If not then i have to go with the process of inserting them in the DB. If it exists then i need to skip that ID and move to the next ID and check the same and proceed. How can i do that with for loop and if condition?
Please Example programms on vbscript 1)writing functions and calling functions
how to find number of characters(letter a) in the sentence Rain Rain Go away
filter the array values without using filter function?
Hello Friends , I am the new joinner of this website. I am working with Sapient ,Gurgoan I would like to ask few qurries regarding the QTP Tool of (Testing) Currently working on QTP Tool . I would like to no learn VB Script can u name some Books which i get in market. And a small issue in QTP I had 2 users right i have to login and send the document from this user to second user right. when i am send this doc some contendId number generates right. now i am loging into second user and i have to search for that contentId right i found it now i dont want to accept the document so i had an opption of check out ok i have to click on check out my QTP Code is like this Browser(" ").Page(" ").WebTable(" ").ChildItem (3,5,"Image",0).click Browser(" ").Page(" ").Link("ChecK Out").Click i new this code is perfectly right but when i am run the script i have to click on that particular contentId and click on check out but now the Problem is started the error is the document has been already checked out remeber every time my content id changes means it is the new contentId which is not been used atleast once Please help me out in this issue i am in big trouble