How many data types are supported in Vbscript?
Answer Posted / abbas khan
There is only one Data Type in vbScript , which is able to
store any kind values such as integer, string, double, date
etc. (We term it as Varient).
To know what kind of value a variable contains,
use "TypeName" keyword.
Example :
Var1 = "abcde"
Msgbox TypeName(Var1) 'OutPut will be string
Var2 = "1234"
Msgbox TypeName(Var2) 'OutPut will be integer
| Is This Answer Correct ? | 0 Yes | 0 No |
Post New Answer View All Answers
Difference between dim,public and private variables in vb script?
What's the difference between vbscript and vb.net?
What are the advantages of vbscript?
How to write VB script for login module?
What is the use of the instr function?
Could Anybody Please tell me What is the script for Find 3rd Largest element in the Array without using a SORT function int Find(int arr[], int size); Thanks in Advance..
How to capture a runtime error in vbscript?
What are events in the vbscript language?
How to write functions and sub in vb script?
When are redim statement and preserve keyword used in the vbscript language?
Hi anyone Can Send Solution to the Question wt m posting now Prepare Script for the Bellow Scenario? Login to Gmail Page Open Inbox check Mails save them in a Folder
Mention what is select case statement?
Can automation testing find ssame no. of bugs what we can find by manual testing?
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
Explain the scope of the variables using dim, public, and private keywords respectively.