I unserstand that my questions might be small but if anything Im not a student to VB I am to Vb script which seems to run differently. I have the microsoft documentation that is not helping me. I have done numerous google searches. In my post in the begging I said if their is another post about...
When I rem the Redim statement just before the last loop I get subscript out of range error again. I can However redim the array a value of 500 but that is not how I would like it. I would like the array to adjust to the size I need it.
I am now trying to redim the array inside the loop with minimal sucess?
It is only passing the last index of the array?
option explicit
dim myArray ()
dim i
call var (myarray)
for i = 0 to 12
wscript.echo myarray(i)
next
sub var (arrayVAR)
dim x, j, ad
x = 0
for j = 0 to 12
x = x +...
Was wondering if I could get some help on this simple code.
I am trying to learn how to pass an array?
Im getting error "subscript out of range"
option explicit
dim myArray (13)
dim i
call var (myarray())
for i = 0 to 12
wscript.echo myarray(i)
next
sub var (arrayVAR())
dim x, j
x = 0
for j...
I tried out your code and their was still a little bit of a bug. It will delete the files at the start level but it wont delete the files at the sub-folder level. Yet the counter counts thos files but just wont delete them.
This is what I have come up with the problem with the code is that it wont go into the sub folders to delete the files with the extensions
Dim fso, counter, sroot, objFSO, x
Dim fld, fls, oFile, dt, oFolder, strWildcardsToDelete
set fso = CreateObject("Scripting.FileSystemObject")
counter = 0...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.