This works correctly in my spanish version of VFP (even though the windows have different captions). However, it only works if the watch window is open. If I open the debugger, but close the watch window, the question returns ".F.".
Hilmar.
>Tim,
>
>In my code I have the following (don't really know why!)
>
>
>If wExist('watch') or wExist('Watch') or wExist('WATCH')
> ** Debugger is open
>Else
> ** Not open
>Endif
>
>
>HTH
>
>Will
>
>>Is there some way to tell if the debugger is being run?
>>
>>I.e. I want something that in pseudocode would look like..
>>
>>IF THE CODE IS BEGIN RUN THROUGH THE DEBUGGER
>> DO THIS
>>ELSE
>> DO THIS
>>ENDIF
>>
>>
>>THANKS!!!!
Difference in opinions hath cost many millions of lives: for instance, whether flesh be bread, or bread be flesh; whether whistling be a vice or a virtue; whether it be better to kiss a post, or throw it into the fire... (from Gulliver's Travels)