Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
What is ASSERT used for?
Message
From
01/10/1998 12:45:59
Dave Nantais
Light speed database solutions
Ontario, Canada
 
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00141677
Message ID:
00142901
Views:
35
>Or better yet:
>
>If _VFP.StartMode = 0 && a development version of VFP
> Set Assert On
>Else
> Set Assert Off
>Endif
>
>At least this way - you do not have to keep recompiling things. So, if a client has a problem, you can get his/her EXE - drop it into your dev environment - and automatically have assertions available. I just don't like the idea of having to recompile to get to a certain state. We have all of these ways to tell if we are in or not in dev mode. Why not use them????


what about having an include.h file with a statement like

#DEFINE DEBUGMODE .T.

This is the method used in the TasTrade example.



and then using DEBUGMODE for SETting the ASSERTION mode and
other debugging features you might have in your app ?


Dave.
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform