>>I'm playing around with the following code:
>>
>>
>>oNet = CREATEOBJECT("WScript.Network")
>>oNetDrives = oNet.EnumNetworkDrives
>>FOR lni = 0 TO oNetDrives.Count - 1 STEP 2
>> ? oNetDrives.Item(lni)
>>NEXT
>>FOR lni = 1 TO oNetDrives.Count - 1 STEP 2
>> ? oNetDrives.Item(lni)
>>NEXT
>>
>>
>>What is happening is that it errors-out on the 4th line (first line inside the FOR loop) with "Unrecognized command verb." The funny thing is that if I hover the mouse over the "oNetDrives.Item(lni)" in the Trace window it shows a value for the drive letter, but if I type it into the Watch window it says the the expression cannot be evaluated. As you may have surmised from a couple other threads recently I am new to this. Any thoughts on what is causing the error and odd debugger behaviour? Thanks!
>>
>>Regards, Renoir
>
>Just a shot in the dark, but perhaps VFP is choking on the 0 base array?
Nope, James. If there was a problem with the zero based array it would probably show up in the object.
George
Ubi caritas et amor, deus ibi est