Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
What is ASSERT used for?
Message
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00141677
Message ID:
00141783
Views:
33
Hi John,

>Assertions are for developers only. What good does it do for an end-user to see a dialog that displays as a result of a failed assertion. Craig is 100% correct here in that when distributing your application - Set Assert should be off.

May I disagree here with you? ;-) ASSERT is ignored by the runtime library, since there's no debugger that can be shown up. So there's no real reason to handle SET ASSERT differenly when distributing your application. Nevertheless, I'd remove them entirely when building the distribution application, either via

#DEFINE ASSERT NOTE

or by surrounding them with an #IF...#ENDIF statement.

Christof
--
Christof
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform