Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
VFP 9 Debugger Bug
Message
General information
Forum:
Visual FoxPro
Category:
Troubleshooting
Miscellaneous
Thread ID:
01034735
Message ID:
01034833
Views:
16
>There is another way to stop the program.
>define a public variable before you call this method (just for debuging).
>
>IF _VFP.StartMode == 0
>   IF TYPE("pnCallMethod") == "U
>      PUBLIC pnCallMethod
>      m.pnCallMethod = 0
>   ENDIF
>ENDIF
>
>
>then in save method there where you want the program stops:
>
>
>IF _VFP.StartMode == 0
>   SET ASSERTS ON
>   m.pnCallMethod = m.pnCallMethod + 1
>   ASSERT m.pnCallMethod # 2 && or something similar just the condition must be .f. when you want to stop
>ENDIF
>
Thanks a lot, let me try.
If it's not broken, fix it until it is.


My Blog
Previous
Reply
Map
View

Click here to load this message in the networking platform