Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
WSH Odd Behaviour in Debugger
Message
 
À
07/12/2001 13:22:23
Jay Johengen
Altamahaw-Ossipee, Caroline du Nord, États-Unis
Information générale
Forum:
Visual FoxPro
Catégorie:
Fonctions Windows API
Divers
Thread ID:
00591305
Message ID:
00591332
Vues:
31
>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) && Displays the drive mapping
>NEXT
>FOR lni = 1 TO oNetDrives.Count - 1 STEP 2
>    ? oNetDrives.Item(lni) && Displays the share name
>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!
>
Renoir,

Gee...that looks familiar.< g >

Are you saying that the code runs fine without the debugger? Originally, it (or something similar) was written on Win98SE connected to a Novell network in VFP 6.0. It worked fine (no debugger). I just copied and pasted it into a prg in VFP 7.0. Works fine. Same thing in 6.0 and in stepping through in the debugger.
George

Ubi caritas et amor, deus ibi est
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform