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 |
Which respective symbols are used to separate a line and to break the lengthy statement into multiple statements in the vbscript language?
generic function for webedit box for web application
Write a Script for ATM in QTP
1) How can we use VB script in testing the application? 2) What all are the things(Software application to be installed in PC) we need to learn VBscript?
accept a string & display whether a is present or not
I want to count the total no of links present in yahoo home page. The script like Set fileSysObject=createobject("Scripting.FileSystemObject") Set linksFileName=fileSysObject.opentextfile("D:\samplelinkfile.txt",2,true) Set linkDescObj=description.Create linkDescObj("micclass").value="Link" Set noOfLinks=browser("yahoo").Page("Yahoo!India").ChildObjects(linkDescObj) For i=0 to noOfLinks.count-1 linkName=noOfLinks(i).getROProperty("name") linksFileName.writeline(linkName) Next linksFileName.close Set fileSysObject=nothing But while running the script it is fail (the object not present in the object repository).How to overcome please tell me the detail steps...for QTP9.30
write a qtp script to count the number of minimized windows
Find Out Length of an array without using Ubound?
how to increase the values in text box in a given text box increament by two values by clicking on button
How will you convert a string to lower case string using vbscript?
regular expression that will recognize a browser as long as its name property starts with mybrowser
Which operator can be used to change the value of the operand or change the state of the condition?