how to write basic programs in VB Script like addition,
multiplication?

Answer Posted / vaibhav

function vaibhav x,y
dim x,
dim y,
dim z,
z=x*y
msgbox z

Is This Answer Correct ?    116 Yes 59 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

filter the array values without using filter function?

1655


Explain some uses of vb script?

551


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

1564


Like OPTION EXPLICIT statement what are the other statements used in vbscript and their usage. Please post me all the statements please.

1619


What are the data types supported by vbscript?

578






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?

1750


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

603


How will you release the memory acquired by an array variable in vbscript?

742


Hi Friends my Question is very simple,in Manual testing when we click on a hyper link it directs us to the relavent page or it re-directs us to the current page,so there we can easily write testcase but same thing if we do in automation script using QTP & need to generate report using Reporter.report event how we will do it?thanks in advance...

1651


What are events in the vbscript language?

544


please can you help me to get a code of flames using a visual basic 6

1226


Sub link() Dim k As Integer Dim rand As Integer Dim URL As String Dim foldernum As Integer Dim folderstring As String Dim filenum As Integer Dim filestring As String k = 1 'for AC Numbers For i = 11 To 40 foldernum = 0 foldernum = 1000 + i folderstring = CStr(foldernum) folderstring = Mid(folderstring, 2, 3) folder = "ac" & folderstring 'folderstring = Sheets(2).Cells(i, 1) ' for Number of Random files For j = 1 To 10 rand = Int(Rnd * (200 - 1) + 1) filenum = 0 filenum = 1000 + rand filestring = CStr(filenum) filestring = Mid(filestring, 2, 3) 'URL = "http://ceobihar.nic.in/PSCDROM/ac" & folderstring & "/i" & folderstring & "0" & filestring & ".pdf" URL = "http://www.elections.tn.gov.in/pdfs/dt1/" & folder & "/" & folder & filestring & ".pdf" ' URL =http://www.wb.nic.in/wbeco/EROLLS/PDF/English/A001/a0010105 .pdf Cells(k, 1) = folderstring Cells(k, 2) = folder Cells(k, 3) = filestring Cells(k, 3) = URL k = k + 1 Next j Next i End Sub plz define it

2235


how to increasing the numbers in a given text box please write a vb script

1698


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

1516


Explain the adodb.stream class?

545