How to return a value from function...?
you should not tell msgbox, print.. etc.,
Answer Posted / bfakruddin
in VB Script
| Is This Answer Correct ? | 3 Yes | 1 No |
Post New Answer View All Answers
Mention what is variant in vbscript?
Mention what is byref and byval parameters in vbscript?
For a webbased application:- what should be code in expert veiw, for retrieving a single column name "username" from a server and checking whether exported "username" from datatable doesn't exist in server. suppose i have saved in excelsheet a username="gayatri" , which is exported, then checked for whether this username "gayatri" exist in server database or not ? if exist then allow to enter new username, which should be again checked for in loop , or else come out of loop and enter a distinct "username". plz let me have this answer in my id gayatrisahooin@hotmail.com
Why to use option explicit in vb script?
How are comments handled in the vbscript language?
What are the special sub-types in vbscript?
how to set one column as primary key in QTP and fetch values accordingly
Explain about the extension .hta?
Out of the different type of operators, which are evaluated first and last in the vbscript language?
How to make professional test report using vbscript code in UFT, which gives us complete analysis of the test.
How will you get the largest subscript of an array in vbscript?
what is the standards used for writing the script in QTP
Which constant is used for print and display functions and works as same as pressing enter key?
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
Which in-built functions are used to convert the specified expression in the form of date and string in the vbscript language?