تماشای ویدئو VBScript Basics Part 45 Adding to an Array Arrays از آی-ویدئو

VBScripting (.vbs) Basic tutorial on how to add to an existing array, using the ReDim and Preserve, and UBound commands. Code Example: ___ Option Explicit Dim Files, File, myArray Dim objFSO : Set objFSO = CreateObject("Scripting.FileSystemObject") Set Files = objFSO.GetFolder(CreateObject("Wscript.Shell").SpecialFolders("Desktop")).Files myArray = Array() For Each File In Files ReDim Preserve myArray(UBound(myArray) + 1) myArray(UBound(myArray)) = File.Name Next MsgBox Joi
9 دی 1396
آی-ویدئو