Can anybody code this problem for me in VB script -
Create an array of 4 elements, increase its size to 7
elements and then find out which of the elements are prime
(use functions)

Answer Posted / sadashivbyagi

we should use the dynamic array to resize the array then we
can change the size of the array

Is This Answer Correct ?    2 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

If we take 2 strings as “good” and “bad” then what will ‘+’ and ‘&’ operators return?

535


write a function to read the items from combobox of Flight reservation & save in excel (QTP)??

2396


What is the difference between a dictionary and an array?

583


How can constants be declared in the vbscript language?

553


Is VB Script Case sensitive or Case insensitive?

640






Which function is used in the vbscript language to convert the specified expression into a date type value?

526


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

1705


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

2241


How will you get the octal value of the given number in vbscript?

499


Mention characteristics of sub procedures?

580


why variable name should not exceed 255 characters?

1822


Which operator is used to perform the comparison among 2 operands in the vbscript language?

529


How will you get a string with the specified character the specified number of times in vbscript?

577


what is resorceallocation

1775


Can someone please tell me what poor design in a relational database (not the layout or style) is and how it can be avoided? PLEASE...im desperate.

1416