explanation

Im calling a method of a COM object that takes a sized string as a parameter and fills it with the adapternames on the computer.

VB Code:
  1. 'dim sized string
  2. Dim AdapterNames as String * 1000
  3. Dim AdapterList as String
  4. 'call the method to fill the string
  5. vpacket.GetAdapterNames(AdapterNames)
  6. AdapterList=Split(AdapterNames,vbNullChar)

This works fine and I get a Array of Strings with the adapter names.

But, Im not sure how to go about doing the same thing in vbs
heres what i was trying.

VB Code:
  1. Dim AdapterNames
  2. set vpacket=createobject("vbPcap.vbPacket")
  3. AdapterNames=string(1000," ")
  4. vpacket.GetAdapterNames(AdapterNames)

The AdapterNames doesnt get filled with the data like in vb.
Actually it doesnt get changed at all.
Am i trying something that cant be done in vbs?
Can someone point me in the right direction here.

thanks
packetvb