Alina
12 years agoOccasional Contributor
Array in a Loop - to get a list of Folder names - VBScript
Sub TestArray()
Dim FolderList(5), i
Dim Table
FolderList(0)="NAME1"
FolderList(1)="NAME2"
FolderList(2)="NAME3"
FolderList(3)="NAME4"
if Not
Project.Variables.VariableExists("MyTable") Then
Call Project.Variables.AddVariable("MyTable", "Table")
End
If
Set Table = Project.Variables.VariableByName("MyTable")
For
i = 0 to ubound(FolderList)
Log.Message (FolderList)
for (var i = 0; i < tbl.rowCount; i++)
Log.Message (FolderList)
next
Next
End Sub