>No, it's an ongoing problem with the first reference to the property of a COM object that hasn't been pre-registered through a wrapper; the properties of a COM object are only made visible after they've been examined once, at least in some versions. The following might help - rather than indexing explicitly, try a FOR...EACH construct, like:
>
>
lIsMapping = .t.
>oNet = CREATEOBJECT("WScript.Network")
>oNetDrives = oNet.EnumNetworkDrives
>FOR Each ItemValue IN oNetDrives
> IF lIsMapping
> ? ItemValue
> ELSE
> ?? ' = ' + ItemValue
> ENDIF
> lIsMapping = ! lIsMapping
>ENDFOR
>
>You could use similar techniques to populate a two-dimensional array of drives and mappings
Ed,
That was it! Not sure I understand the nuances of the versions and exactly why the previous code didn't work, but I will soon... Thanks!
Renoir