You are on page 1of 2

option explicit

Dim astr, name

aStr=Array("Hi","Hello")
name="BalajiMore"

WScript.Echo "IsArray(astr): "& IsArray(astr)


WScript.Echo "IsArray(name): "& IsArray(name)

WScript.Echo IsArray(astr)

wscript.quit

'====================================

For Each Element In Arr


WScript.Echo Element
Next
This requires, as I said before, an Array of type Variant (i.e., VarType returns 8204).

For N = 0 To UBound(Arr)
WScript.Echo Arr(N)
Next

'====================================

Option Compare Database

Dim objMain As oMain


Dim objAdapt As oNetworkAdapter

Sub Main()
Dim stMsg As String
Dim lgCount As Long
Dim stAdapt() As String
Dim stAdapters As String

Set objMain = New oMain


Set objAdapt = New oNetworkAdapter

Call objMain.UnlockComponent("xxx-xxxxx-xxxxx-xx")

Call objAdapt.GetNetworkAdapters

stAdapt = objAdapt.cName

For lgCount = 0 To UBound(stAdapt)


stMsg = stMsg & stAdapt(lgCount) & vbCrLf
Next

MsgBox stMsg

Exit Sub
End Sub

You might also like